2017-05-28 00:38:50 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// 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) {
|
2017-08-14 05:01:11 +02:00
|
|
|
module.exports = require(process.env.AVA_PATH);
|
2017-05-28 00:38:50 +02:00
|
|
|
} else {
|
|
|
|
module.exports = require('./lib/main');
|
|
|
|
}
|