From 16360251c8c85ba675c4721e7e7f4735103f9beb Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Tue, 24 Dec 2024 08:47:28 +0100 Subject: [PATCH] test: enable ts test on win arm64 --- test/es-module/test-typescript.mjs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/es-module/test-typescript.mjs b/test/es-module/test-typescript.mjs index dbcbebbb2682e6..1dad3b5abd94e2 100644 --- a/test/es-module/test-typescript.mjs +++ b/test/es-module/test-typescript.mjs @@ -1,4 +1,4 @@ -import { skip, spawnPromisified, isWindows } from '../common/index.mjs'; +import { skip, spawnPromisified } from '../common/index.mjs'; import * as fixtures from '../common/fixtures.mjs'; import { match, strictEqual } from 'node:assert'; import { test } from 'node:test'; @@ -270,10 +270,7 @@ test('execute a JavaScript file importing a cjs TypeScript file', async () => { strictEqual(result.code, 0); }); -// TODO(marco-ippolito) Due to a bug in SWC, the TypeScript loader -// does not work on Windows arm64. This test should be re-enabled -// when https://github.com/nodejs/node/issues/54645 is fixed -test('execute a TypeScript test mocking module', { skip: isWindows && process.arch === 'arm64' }, async () => { +test('execute a TypeScript test mocking module', async () => { const result = await spawnPromisified(process.execPath, [ '--test', '--experimental-test-module-mocks',