File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -394,7 +394,6 @@ export default testSuite(({ describe }, node: NodeApis) => {
394
394
await using fixture = await createFixture ( {
395
395
'package.json' : JSON . stringify ( { type : 'module' } ) ,
396
396
'import.mjs' : `
397
- import assert from 'assert';
398
397
import { tsImport } from ${ JSON . stringify ( tsxEsmApiPath ) } ;
399
398
const dependenciesA = [];
400
399
await tsImport('./file.ts', {
@@ -415,7 +414,13 @@ export default testSuite(({ describe }, node: NodeApis) => {
415
414
// wait for async import() to finish
416
415
await new Promise((resolve) => setTimeout(resolve, 10));
417
416
418
- assert(JSON.stringify(dependenciesA) === JSON.stringify(dependenciesB))
417
+ if (JSON.stringify(dependenciesA) !== JSON.stringify(dependenciesB)) {
418
+ console.log({
419
+ dependenciesA,
420
+ dependenciesB,
421
+ });
422
+ process.exitCode = 1
423
+ }
419
424
` ,
420
425
'file.ts' : 'import "./foo.ts"; import(\'./bar.ts\')' ,
421
426
'foo.ts' : 'console.log(\'foo\' as string)' ,
You can’t perform that action at this time.
0 commit comments