| 1 |
'use strict' |
| 2 |
|
| 3 |
const path = require('path') |
| 4 |
|
| 5 |
const t = require('tap') |
| 6 |
|
| 7 |
const { testSuccess } = require('./helpers') |
| 8 |
|
| 9 |
const cwd = path.resolve(__dirname, 'fixtures') |
| 10 |
|
| 11 |
t.test('eager disabled by default', t => testSuccess(t, { |
| 12 |
args: [ |
| 13 |
'--silent=true', |
| 14 |
'--exclude=eager.js', |
| 15 |
process.execPath, |
| 16 |
'./eager.js' |
| 17 |
], |
| 18 |
cwd |
| 19 |
})) |
| 20 |
|
| 21 |
t.test('eager enabled', t => testSuccess(t, { |
| 22 |
args: [ |
| 23 |
'--silent=true', |
| 24 |
'--eager=true', |
| 25 |
'--exclude=eager.js', |
| 26 |
process.execPath, |
| 27 |
'./eager.js' |
| 28 |
], |
| 29 |
cwd |
| 30 |
})) |