Skip to content

Commit 7cd82f2

Browse files
committed
add tests
1 parent d6e9c2e commit 7cd82f2

File tree

5 files changed

+77
-0
lines changed

5 files changed

+77
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/foo/tsconfig.json(4,9): error TS5097: Flag 'noImplicitUseStrict' is deprecated, please remove it from your configuration.
2+
/foo/tsconfig.json(5,9): error TS5097: Flag 'keyofStringsOnly' is deprecated, please remove it from your configuration.
3+
/foo/tsconfig.json(6,9): error TS5097: Flag 'suppressExcessPropertyErrors' is deprecated, please remove it from your configuration.
4+
/foo/tsconfig.json(7,9): error TS5097: Flag 'suppressImplicitAnyIndexErrors' is deprecated, please remove it from your configuration.
5+
/foo/tsconfig.json(8,9): error TS5097: Flag 'noStrictGenericChecks' is deprecated, please remove it from your configuration.
6+
/foo/tsconfig.json(9,9): error TS5097: Flag 'charset' is deprecated, please remove it from your configuration.
7+
/foo/tsconfig.json(10,9): error TS5097: Flag 'out' is deprecated, please remove it from your configuration.
8+
/foo/tsconfig.json(11,31): error TS5098: Invalid value for '--ignoreDeprecations'.
9+
10+
11+
==== /foo/tsconfig.json (8 errors) ====
12+
{
13+
"compilerOptions": {
14+
"target": "ES3",
15+
"noImplicitUseStrict": true,
16+
~~~~~~~~~~~~~~~~~~~~~
17+
!!! error TS5097: Flag 'noImplicitUseStrict' is deprecated, please remove it from your configuration.
18+
"keyofStringsOnly": true,
19+
~~~~~~~~~~~~~~~~~~
20+
!!! error TS5097: Flag 'keyofStringsOnly' is deprecated, please remove it from your configuration.
21+
"suppressExcessPropertyErrors": true,
22+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23+
!!! error TS5097: Flag 'suppressExcessPropertyErrors' is deprecated, please remove it from your configuration.
24+
"suppressImplicitAnyIndexErrors": true,
25+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26+
!!! error TS5097: Flag 'suppressImplicitAnyIndexErrors' is deprecated, please remove it from your configuration.
27+
"noStrictGenericChecks": true,
28+
~~~~~~~~~~~~~~~~~~~~~~~
29+
!!! error TS5097: Flag 'noStrictGenericChecks' is deprecated, please remove it from your configuration.
30+
"charset": "utf8",
31+
~~~~~~~~~
32+
!!! error TS5097: Flag 'charset' is deprecated, please remove it from your configuration.
33+
"out": "dist.js",
34+
~~~~~
35+
!!! error TS5097: Flag 'out' is deprecated, please remove it from your configuration.
36+
"ignoreDeprecations": "5.0"
37+
~~~~~
38+
!!! error TS5098: Invalid value for '--ignoreDeprecations'.
39+
}
40+
}
41+
42+
==== /foo/a.ts (0 errors) ====
43+
const a = 1;
44+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//// [a.ts]
2+
const a = 1;
3+
4+
5+
//// [dist.js]
6+
var a = 1;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
=== /foo/a.ts ===
2+
const a = 1;
3+
>a : Symbol(a, Decl(a.ts, 0, 5))
4+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
=== /foo/a.ts ===
2+
const a = 1;
3+
>a : 1
4+
>1 : 1
5+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// @typeScriptVersion: 6.0
2+
// @filename: /foo/tsconfig.json
3+
{
4+
"compilerOptions": {
5+
"target": "ES3",
6+
"noImplicitUseStrict": true,
7+
"keyofStringsOnly": true,
8+
"suppressExcessPropertyErrors": true,
9+
"suppressImplicitAnyIndexErrors": true,
10+
"noStrictGenericChecks": true,
11+
"charset": "utf8",
12+
"out": "dist.js",
13+
"ignoreDeprecations": "5.0"
14+
}
15+
}
16+
17+
// @filename: /foo/a.ts
18+
const a = 1;

0 commit comments

Comments
 (0)