Skip to content

Commit d1f462e

Browse files
committed
fix fix fix
1 parent 3cd7760 commit d1f462e

File tree

1 file changed

+6
-8
lines changed
  • dev-packages/node-integration-tests/suites/esm/import-in-the-middle

1 file changed

+6
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1+
import { spawnSync } from 'child_process';
2+
import { join } from 'path';
13
import { conditionalTest } from '../../../utils';
2-
import { cleanupChildProcesses, createRunner } from '../../../utils/runner';
4+
import { cleanupChildProcesses } from '../../../utils/runner';
35

46
afterAll(() => {
57
cleanupChildProcesses();
68
});
79

810
conditionalTest({ min: 18 })('import-in-the-middle', () => {
9-
test('onlyIncludeInstrumentedModules', done => {
10-
const runner = createRunner(__dirname, 'app.mjs').start(() => {
11-
runner.getLogs().forEach(logMsg => {
12-
expect(logMsg).not.toContain('should be the only hooked modules but we just hooked');
13-
});
14-
done();
15-
});
11+
test('onlyIncludeInstrumentedModules', () => {
12+
const result = spawnSync('node', [join(__dirname, 'app.mjs')], { encoding: 'utf-8' });
13+
expect(result.stderr).not.toMatch('should be the only hooked modules but we just hooked');
1614
});
1715
});

0 commit comments

Comments
 (0)