Skip to content

Commit c334402

Browse files
committed
test: skip test-compile-cache-typescript tests
skip these as they are failing without amaro Fixes: #60815
1 parent 5a746fd commit c334402

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

test/parallel/test-compile-cache-typescript-commonjs.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
// This tests NODE_COMPILE_CACHE works for CommonJS with types.
44

5-
require('../common');
5+
const common = require('../common');
6+
if (!process.config.variables.node_use_amaro) {
7+
common.skip('Requires Amaro');
8+
}
69
const { spawnSyncAndAssert } = require('../common/child_process');
710
const assert = require('assert');
811
const tmpdir = require('../common/tmpdir');
912
const fixtures = require('../common/fixtures');
1013

1114
// Check cache for .ts files that would be run as CommonJS.
12-
if (process.config.variables.node_use_amaro) {
15+
{
1316
tmpdir.refresh();
1417
const dir = tmpdir.resolve('.compile_cache_dir');
1518
const script = fixtures.path('typescript', 'ts', 'test-commonjs-parsing.ts');

test/parallel/test-compile-cache-typescript-esm.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
// This tests NODE_COMPILE_CACHE works for ESM with types.
44

5-
require('../common');
5+
const common = require('../common');
6+
if (!process.config.variables.node_use_amaro) {
7+
common.skip('Requires Amaro');
8+
}
69
const { spawnSyncAndAssert } = require('../common/child_process');
710
const assert = require('assert');
811
const tmpdir = require('../common/tmpdir');
912
const fixtures = require('../common/fixtures');
1013

1114
// Check cache for .ts files that would be run as ESM.
12-
if (process.config.variables.node_use_amaro) {
15+
{
1316
tmpdir.refresh();
1417
const dir = tmpdir.resolve('.compile_cache_dir');
1518
const script = fixtures.path('typescript', 'ts', 'test-module-typescript.ts');

0 commit comments

Comments
 (0)