Skip to content

Commit 1175539

Browse files
committed
always create files even if cjs is skipped
1 parent 05e2692 commit 1175539

File tree

1 file changed

+2
-4
lines changed
  • dev-packages/node-integration-tests/utils

1 file changed

+2
-4
lines changed

dev-packages/node-integration-tests/utils/runner.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,8 @@ export function createEsmAndCjsTests(
191191
const cjsInstrumentPath = join(cwd, `tmp_${instrumentPath.replace('.mjs', '.cjs')}`);
192192

193193
// For the CJS runner, we create some temporary files...
194-
if (!options?.failsOnCjs) {
195-
convertEsmFileToCjs(mjsScenarioPath, cjsScenarioPath);
196-
convertEsmFileToCjs(mjsInstrumentPath, cjsInstrumentPath);
197-
}
194+
convertEsmFileToCjs(mjsScenarioPath, cjsScenarioPath);
195+
convertEsmFileToCjs(mjsInstrumentPath, cjsInstrumentPath);
198196

199197
describe('esm & cjs', () => {
200198
afterAll(() => {

0 commit comments

Comments
 (0)