summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/args/config_file.rs2
-rw-r--r--cli/tests/integration/run_tests.rs3
-rw-r--r--cli/tests/testdata/config.ts19
-rw-r--r--cli/tests/testdata/config.ts.out6
-rw-r--r--cli/tests/testdata/config.tsconfig.json2
-rw-r--r--cli/tests/testdata/tsconfig.decorators.json5
6 files changed, 8 insertions, 29 deletions
diff --git a/cli/args/config_file.rs b/cli/args/config_file.rs
index 8e6b151a6..bead2a284 100644
--- a/cli/args/config_file.rs
+++ b/cli/args/config_file.rs
@@ -105,6 +105,7 @@ pub const IGNORED_COMPILER_OPTIONS: &[&str] = &[
"emitBOM",
"emitDeclarationOnly",
"esModuleInterop",
+ "experimentalDecorators",
"extendedDiagnostics",
"forceConsistentCasingInFileNames",
"generateCpuProfile",
@@ -120,6 +121,7 @@ pub const IGNORED_COMPILER_OPTIONS: &[&str] = &[
"mapRoot",
"maxNodeModuleJsDepth",
"module",
+ "moduleDetection",
"moduleResolution",
"newLine",
"noEmit",
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index 6ed1d5964..96e4cfce5 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -659,7 +659,6 @@ itest!(async_error {
itest!(config {
args: "run --reload --config config.tsconfig.json --check config.ts",
- exit_code: 1,
output: "config.ts.out",
});
@@ -1042,7 +1041,7 @@ itest!(ts_type_imports {
});
itest!(ts_decorators {
- args: "run --reload -c tsconfig.decorators.json --check ts_decorators.ts",
+ args: "run --reload --check ts_decorators.ts",
output: "ts_decorators.ts.out",
});
diff --git a/cli/tests/testdata/config.ts b/cli/tests/testdata/config.ts
index cd7a1b33f..51a61e447 100644
--- a/cli/tests/testdata/config.ts
+++ b/cli/tests/testdata/config.ts
@@ -1,18 +1,5 @@
-// deno-lint-ignore-file
-
-function b() {
- return function (
- _target: any,
- _propertyKey: string,
- _descriptor: PropertyDescriptor,
- ) {
- console.log("b");
- };
+function foo(bar) {
+ return bar;
}
-class A {
- @b()
- a() {
- console.log("a");
- }
-}
+foo(1);
diff --git a/cli/tests/testdata/config.ts.out b/cli/tests/testdata/config.ts.out
index 76e357a73..44b123f97 100644
--- a/cli/tests/testdata/config.ts.out
+++ b/cli/tests/testdata/config.ts.out
@@ -1,8 +1,4 @@
[WILDCARD]Unsupported compiler options in "[WILDCARD]config.tsconfig.json".
The following options were ignored:
module, target
-[WILDCARD]
-error: TS1219 [ERROR]: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
- a() {
- ^
- at file:///[WILDCARD]/config.ts:[WILDCARD]
+Check [WILDCARD]/config.ts
diff --git a/cli/tests/testdata/config.tsconfig.json b/cli/tests/testdata/config.tsconfig.json
index dcabb50a4..0f0881920 100644
--- a/cli/tests/testdata/config.tsconfig.json
+++ b/cli/tests/testdata/config.tsconfig.json
@@ -1,7 +1,7 @@
{
"compilerOptions": {
- "experimentalDecorators": false,
"module": "amd",
+ "strict": false,
"target": "es5"
}
}
diff --git a/cli/tests/testdata/tsconfig.decorators.json b/cli/tests/testdata/tsconfig.decorators.json
deleted file mode 100644
index 504cd646e..000000000
--- a/cli/tests/testdata/tsconfig.decorators.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "compilerOptions": {
- "experimentalDecorators": true
- }
-}