Skip to content

Commit

Permalink
test(node-integration-tests): Look for specific error message in iitm…
Browse files Browse the repository at this point in the history
… test
  • Loading branch information
lforst committed Dec 11, 2024
1 parent 72239ee commit 3cd7760
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ afterAll(() => {

conditionalTest({ min: 18 })('import-in-the-middle', () => {
test('onlyIncludeInstrumentedModules', done => {
createRunner(__dirname, 'app.mjs').ensureNoErrorOutput().start(done);
const runner = createRunner(__dirname, 'app.mjs').start(() => {
runner.getLogs().forEach(logMsg => {
expect(logMsg).not.toContain('should be the only hooked modules but we just hooked');
});
done();
});
});
});

0 comments on commit 3cd7760

Please sign in to comment.