summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-07-20 15:59:56 +0100
committerGitHub <noreply@github.com>2022-07-20 16:59:56 +0200
commit6e350b2b7c7b027b31694875cdb423f494d1b423 (patch)
tree74fa23b0a55600b08bb3fbc5ba60f2630e2b6c35 /cli/tests
parentd17b3906bf3a0871d54e9fdc009891e378dc45f5 (diff)
chore(cli): Ignore "experimentalDecorators" and "moduleDetection" options (#15202)
Diffstat (limited to 'cli/tests')
-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
5 files changed, 6 insertions, 29 deletions
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
- }
-}