test-exclude/test/fixtures/subprocess/bin/subprocess.js
raw| 1 | #!/usr/bin/env node |
| 2 | |
| 3 | 'use strict'; |
| 4 | |
| 5 | const assert = require('assert'); |
| 6 | const testExclude = require('../../../..'); |
| 7 | |
| 8 | const e = testExclude({ |
| 9 | configKey: 'a' |
| 10 | }); |
| 11 | |
| 12 | assert.strictEqual(e.configFound, true); |
| 13 | assert.strictEqual(e.shouldInstrument('foo.js'), true); |
| 14 | assert.strictEqual(e.shouldInstrument('batman.js'), false); |