Files
codeql-action/node_modules/ava/plugin.js
2021-10-25 08:56:16 -07:00

10 lines
322 B
JavaScript

'use strict';
const path = require('path');
// Ensure the same AVA install is loaded by the test file as by the test worker
if (process.env.AVA_PATH && process.env.AVA_PATH !== __dirname) {
module.exports = require(path.join(process.env.AVA_PATH, 'plugin'));
} else {
module.exports = require('./lib/worker/plugin');
}