Skip to content

Commit 67b8d3e

Browse files
authored
Merge pull request #14665 from getsentry/lforst-fix-int-test-for-node-22
2 parents bda4dc3 + d1f462e commit 67b8d3e

File tree

1 file changed

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

1 file changed

+6
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +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-
createRunner(__dirname, 'app.mjs').ensureNoErrorOutput().start(done);
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');
1114
});
1215
});

0 commit comments

Comments
 (0)