summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-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
4 files changed, 5 insertions, 27 deletions
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
- }
-}