Skip to content

Commit 8873bcb

Browse files
Copilotjakebailey
andcommitted
Move test to local compiler test directory
Moved erasableSyntaxOnlyJS test from the TypeScript submodule to the local test directory at testdata/tests/cases/compiler/. This is the correct location for new test cases specific to tsgo. Co-authored-by: jakebailey <[email protected]>
1 parent f697c90 commit 8873bcb

File tree

7 files changed

+22
-101
lines changed

7 files changed

+22
-101
lines changed

testdata/baselines/reference/submodule/compiler/erasableSyntaxOnlyJS.symbols.diff

Lines changed: 0 additions & 34 deletions
This file was deleted.

testdata/baselines/reference/submoduleAccepted/compiler/erasableSyntaxOnlyJS.errors.txt.diff

Lines changed: 0 additions & 27 deletions
This file was deleted.

testdata/baselines/reference/submoduleAccepted/compiler/erasableSyntaxOnlyJS.types.diff

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// @erasableSyntaxOnly: true
2+
// @allowJs: true
3+
// @checkJs: true
4+
// @noEmit: true
5+
6+
// JavaScript files should not have erasableSyntaxOnly checks
7+
// because they are already "erased" by definition.
8+
9+
// @Filename: bar.cjs
10+
module.exports = {
11+
a: 1,
12+
}
13+
14+
// @Filename: foo.js
15+
module.exports = {
16+
b: 2,
17+
}
18+
19+
// @Filename: index.ts
20+
// These should still error because they are in a TypeScript file
21+
import bar = require("./bar.cjs");
22+
import foo = require("./foo.js");

0 commit comments

Comments
 (0)