Skip to content

Commit

Permalink
Merge pull request #14665 from getsentry/lforst-fix-int-test-for-node-22
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Dec 11, 2024
2 parents bda4dc3 + d1f462e commit 67b8d3e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { spawnSync } from 'child_process';
import { join } from 'path';
import { conditionalTest } from '../../../utils';
import { cleanupChildProcesses, createRunner } from '../../../utils/runner';
import { cleanupChildProcesses } from '../../../utils/runner';

afterAll(() => {
cleanupChildProcesses();
});

conditionalTest({ min: 18 })('import-in-the-middle', () => {
test('onlyIncludeInstrumentedModules', done => {
createRunner(__dirname, 'app.mjs').ensureNoErrorOutput().start(done);
test('onlyIncludeInstrumentedModules', () => {
const result = spawnSync('node', [join(__dirname, 'app.mjs')], { encoding: 'utf-8' });
expect(result.stderr).not.toMatch('should be the only hooked modules but we just hooked');
});
});

0 comments on commit 67b8d3e

Please sign in to comment.