| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 34ca36a commit 3273707
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,7 +76,7 @@ describe('--entry-url', { concurrency: true }, () => { | |||
| 76 | 76 | ); | |
| 77 | 77 | }); | |
| 78 | 78 | ||
| 79 | - it('should support loading TypeScript URLs', async () => { | ||
| 79 | + it('should support loading TypeScript URLs', { skip: !process.config.variables.node_use_amaro }, async () => { | ||
| 80 | 80 | const typescriptUrls = [ | |
| 81 | 81 | 'typescript/cts/test-require-ts-file.cts', | |
| 82 | 82 | 'typescript/mts/test-import-ts-file.mts', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,17 +67,22 @@ for (const isolation of ['none', 'process']) { | |||
| 67 | 67 | `--experimental-${type}-types`, `--experimental-test-isolation=${isolation}`]; | |
| 68 | 68 | const child = spawnSync(process.execPath, args, { cwd: join(testFixtures, 'matching-patterns') }); | |
| 69 | 69 | ||
| 70 | - assert.strictEqual(child.stderr.toString(), ''); | ||
| 71 | - const stdout = child.stdout.toString(); | ||
| 72 | - | ||
| 73 | - assert.match(stdout, /ok 1 - this should pass/); | ||
| 74 | - assert.match(stdout, /ok 2 - this should pass/); | ||
| 75 | - assert.match(stdout, /ok 3 - this should pass/); | ||
| 76 | - assert.match(stdout, /ok 4 - this should pass/); | ||
| 77 | - assert.match(stdout, /ok 5 - this should pass/); | ||
| 78 | - assert.match(stdout, /ok 6 - this should pass/); | ||
| 79 | - assert.strictEqual(child.status, 0); | ||
| 80 | - assert.strictEqual(child.signal, null); | ||
| 70 | + if (!process.config.variables.node_use_amaro) { | ||
| 71 | + // e.g. Compiled with `--without-amaro`. | ||
| 72 | + assert.strictEqual(child.status, 1); | ||
| 73 | + } else { | ||
| 74 | + assert.strictEqual(child.stderr.toString(), ''); | ||
| 75 | + const stdout = child.stdout.toString(); | ||
| 76 | + | ||
| 77 | + assert.match(stdout, /ok 1 - this should pass/); | ||
| 78 | + assert.match(stdout, /ok 2 - this should pass/); | ||
| 79 | + assert.match(stdout, /ok 3 - this should pass/); | ||
| 80 | + assert.match(stdout, /ok 4 - this should pass/); | ||
| 81 | + assert.match(stdout, /ok 5 - this should pass/); | ||
| 82 | + assert.match(stdout, /ok 6 - this should pass/); | ||
| 83 | + assert.strictEqual(child.status, 0); | ||
| 84 | + assert.strictEqual(child.signal, null); | ||
| 85 | + } | ||
| 81 | 86 | } | |
| 82 | 87 | ||
| 83 | 88 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments