322 BJavaScriptView Raw
1'use strict';
2const path = require('path');
3
4// Ensure the same AVA install is loaded by the test file as by the test worker
5if (process.env.AVA_PATH && process.env.AVA_PATH !== __dirname) {
6 module.exports = require(path.join(process.env.AVA_PATH, 'plugin'));
7} else {
8 module.exports = require('./lib/worker/plugin');
9}