1
- import { skip , spawnPromisified } from '../common/index.mjs' ;
1
+ import { isInsideDirWithUnusualChars , skip , spawnPromisified } from '../common/index.mjs' ;
2
2
import * as fixtures from '../common/fixtures.mjs' ;
3
3
import { match , strictEqual } from 'node:assert' ;
4
4
import { test } from 'node:test' ;
5
5
6
6
if ( ! process . config . variables . node_use_amaro ) skip ( 'Requires Amaro' ) ;
7
7
8
+ const maybeSkip = { skip : isInsideDirWithUnusualChars } ;
9
+
8
10
test ( 'execute a TypeScript file with transformation enabled' , async ( ) => {
9
11
const result = await spawnPromisified ( process . execPath , [
10
12
'--experimental-transform-types' ,
@@ -17,7 +19,7 @@ test('execute a TypeScript file with transformation enabled', async () => {
17
19
strictEqual ( result . code , 0 ) ;
18
20
} ) ;
19
21
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 ( ) => {
21
23
const result = await spawnPromisified ( process . execPath , [
22
24
'--experimental-transform-types' ,
23
25
'--no-warnings' ,
@@ -29,7 +31,7 @@ test('reconstruct error of a TypeScript file with transformation enabled and sou
29
31
strictEqual ( result . code , 1 ) ;
30
32
} ) ;
31
33
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 ( ) => {
33
35
const result = await spawnPromisified ( process . execPath , [
34
36
'--experimental-transform-types' ,
35
37
'--no-enable-source-maps' ,
@@ -102,7 +104,7 @@ test('execute a TypeScript file with modern typescript syntax', async () => {
102
104
strictEqual ( result . code , 0 ) ;
103
105
} ) ;
104
106
105
- test ( 'execute a transpiled JavaScript file' , async ( ) => {
107
+ test ( 'execute a transpiled JavaScript file' , maybeSkip , async ( ) => {
106
108
const result = await spawnPromisified ( process . execPath , [
107
109
'--enable-source-maps' ,
108
110
'--no-warnings' ,
0 commit comments