1- import { skip , spawnPromisified } from '../common/index.mjs' ;
1+ import { isInsideDirWithUnusualChars , skip , spawnPromisified } from '../common/index.mjs' ;
22import * as fixtures from '../common/fixtures.mjs' ;
33import { match , strictEqual } from 'node:assert' ;
44import { test } from 'node:test' ;
55
66if ( ! process . config . variables . node_use_amaro ) skip ( 'Requires Amaro' ) ;
77
8+ const maybeSkip = { skip : isInsideDirWithUnusualChars } ;
9+
810test ( 'execute a TypeScript file with transformation enabled' , async ( ) => {
911 const result = await spawnPromisified ( process . execPath , [
1012 '--experimental-transform-types' ,
@@ -17,7 +19,7 @@ test('execute a TypeScript file with transformation enabled', async () => {
1719 strictEqual ( result . code , 0 ) ;
1820} ) ;
1921
20- test ( 'reconstruct error of a TypeScript file with transformation enabled and sourcemaps' , async ( ) => {
22+ test ( 'reconstruct error of a TypeScript file with transformation enabled and sourcemaps' , maybeSkip , async ( ) => {
2123 const result = await spawnPromisified ( process . execPath , [
2224 '--experimental-transform-types' ,
2325 '--no-warnings' ,
@@ -29,7 +31,7 @@ test('reconstruct error of a TypeScript file with transformation enabled and sou
2931 strictEqual ( result . code , 1 ) ;
3032} ) ;
3133
32- test ( 'reconstruct error of a TypeScript file with transformation enabled without sourcemaps' , async ( ) => {
34+ test ( 'reconstruct error of a TypeScript file with transformation enabled without sourcemaps' , maybeSkip , async ( ) => {
3335 const result = await spawnPromisified ( process . execPath , [
3436 '--experimental-transform-types' ,
3537 '--no-enable-source-maps' ,
@@ -102,7 +104,7 @@ test('execute a TypeScript file with modern typescript syntax', async () => {
102104 strictEqual ( result . code , 0 ) ;
103105} ) ;
104106
105- test ( 'execute a transpiled JavaScript file' , async ( ) => {
107+ test ( 'execute a transpiled JavaScript file' , maybeSkip , async ( ) => {
106108 const result = await spawnPromisified ( process . execPath , [
107109 '--enable-source-maps' ,
108110 '--no-warnings' ,
0 commit comments