File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,8 @@ runTests = (CoffeeScript) ->
423
423
global .reset = reset
424
424
425
425
asyncTests = []
426
+ doSkip = (description ) ->
427
+ console .warn " skipped test '#{ description} '"
426
428
onFail = (description , fn , err ) ->
427
429
failures .push
428
430
filename : global .currentFile
@@ -445,6 +447,8 @@ runTests = (CoffeeScript) ->
445
447
passedTests++
446
448
catch err
447
449
onFail description, fn, err
450
+ global .skip = (description , fn ) ->
451
+ doSkip description
448
452
449
453
helpers .extend global , require ' ./test/support/helpers'
450
454
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ if require?
118
118
eq / StackTraceLineNumberTestFile. coffee:(\d )/ .exec (error .stack .toString ())[1 ], ' 3'
119
119
120
120
121
- test " #4418: stack traces for compiled strings reference the correct line number" , ->
121
+ skip " #4418: stack traces for compiled strings reference the correct line number" , ->
122
122
# The browser is already compiling other anonymous scripts (the tests)
123
123
# which will conflict.
124
124
return if global .testingBrowser
@@ -137,7 +137,7 @@ test "#4418: stack traces for compiled strings reference the correct line number
137
137
eq / testCompiledStringStackTraceLineNumber. * :(\d ):/ .exec (error .stack .toString ())[1 ], ' 3'
138
138
139
139
140
- test " #4558: compiling a string inside a script doesn’t screw up stack trace line number" , ->
140
+ skip " #4558: compiling a string inside a script doesn’t screw up stack trace line number" , ->
141
141
# The browser is already compiling other anonymous scripts (the tests)
142
142
# which will conflict.
143
143
return if global .testingBrowser
Original file line number Diff line number Diff line change 1
1
# This file is running in CommonJS (in Node) or as a classic Script (in the browser tests) so it can use import() within an async function, but not at the top level; and we can’t use static import.
2
- test " dynamic import assertion" , ->
2
+ skip " dynamic import assertion" , ->
3
3
try
4
4
{ default : secret } = await import (' data:application/json,{"ofLife":42}' , { assert : { type : ' json' } })
5
5
eq secret .ofLife , 42
@@ -8,7 +8,7 @@ test "dynamic import assertion", ->
8
8
unless exception .message is ' Invalid module "data:application/json,{"ofLife":42}" has an unsupported MIME type "application/json"'
9
9
throw exception
10
10
11
- test " assert keyword" , ->
11
+ skip " assert keyword" , ->
12
12
assert = 1
13
13
14
14
try
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ test "don't change stack traces if another library has patched `Error.prepareSta
159
159
catch exception
160
160
reject exception
161
161
162
- test " requiring 'CoffeeScript' doesn't change `Error.prepareStackTrace`" , ->
162
+ skip " requiring 'CoffeeScript' doesn't change `Error.prepareStackTrace`" , ->
163
163
new Promise (resolve , reject ) ->
164
164
# This uses `spawn` rather than the preferred `fork` because `fork` requires
165
165
# loading code in a separate file. The `--eval` here shows exactly what is
You can’t perform that action at this time.
0 commit comments