Skip to content

Commit 2016a15

Browse files
test(javascript): key swc tests by a /-separated name on every platform
Co-authored-by: aryanraj45 <[email protected]>
1 parent 292a230 commit 2016a15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/specCases/minify-corpora.spectest.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ const readSwcTest = (file, { knows }) => {
433433
: path.join(path.dirname(file), "output.js");
434434
return [
435435
{
436-
name: path.relative(swcTestsDir, file),
436+
// Written with `/` on every platform, as the tables keyed by it are.
437+
name: path.relative(swcTestsDir, file).split(path.sep).join("/"),
437438
input,
438439
module,
439440
own: compress && {

0 commit comments

Comments
 (0)