summaryrefslogtreecommitdiff
path: root/cli/tests/integration/run_tests.rs
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2024-01-24 14:16:23 +0100
committerGitHub <noreply@github.com>2024-01-24 18:46:23 +0530
commitb66f5ed00e83927a976ffdbe45c2ace9641de086 (patch)
tree60442b72d7f91659715d578c7d4d59c78c8537a9 /cli/tests/integration/run_tests.rs
parentaac0ad32bd589394316223f75e6f511331ff124c (diff)
feat: TC39 decorator proposal support (#22040)
This commit adds support for [TC39 Decorator Proposal](https://github.com/tc39/proposal-decorators). These decorators are only available in transpiled sources - ie. non-JavaScript files (because of lack of support in V8). This entails that "experimental TypeScript decorators" are not available by default and require to be configured, with a configuration like this: ``` { "compilerOptions": { "experimentalDecorators": true } } ``` Closes https://github.com/denoland/deno/issues/19160 --------- Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: crowlkats <crowlkats@toaxl.com> Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'cli/tests/integration/run_tests.rs')
-rw-r--r--cli/tests/integration/run_tests.rs17
1 files changed, 11 insertions, 6 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index 3a2b46133..6c82cfeec 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -1508,8 +1508,13 @@ itest!(no_check {
});
itest!(no_check_decorators {
- args: "run --quiet --reload --no-check run/no_check_decorators.ts",
- output: "run/no_check_decorators.ts.out",
+ args: "run --quiet --reload --no-check run/decorators/experimental/no_check/main.ts",
+ output: "run/decorators/experimental/no_check/main.out",
+});
+
+itest!(decorators_tc39_proposal {
+ args: "run --quiet --reload --check run/decorators/tc39_proposal/main.ts",
+ output: "run/decorators/tc39_proposal/main.out",
});
itest!(check_remote {
@@ -1526,8 +1531,8 @@ itest!(no_check_remote {
});
itest!(runtime_decorators {
- args: "run --quiet --reload --no-check run/runtime_decorators.ts",
- output: "run/runtime_decorators.ts.out",
+ args: "run --quiet --reload --no-check run/decorators/experimental/runtime/main.ts",
+ output: "run/decorators/experimental/runtime/main.out",
});
itest!(seed_random {
@@ -1591,8 +1596,8 @@ itest!(ts_type_imports {
});
itest!(ts_decorators {
- args: "run --reload --check run/ts_decorators.ts",
- output: "run/ts_decorators.ts.out",
+ args: "run --reload --check run/decorators/experimental/ts/main.ts",
+ output: "run/decorators/experimental/ts/main.out",
});
itest!(ts_type_only_import {