diff options
| author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-07-09 04:50:47 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-09 01:50:47 +0000 |
| commit | c3b168f5a2a076af011cb7eae0674b52075fb094 (patch) | |
| tree | d46206c7d39039dd227c8cc81d710b5f12b74c02 /tests | |
| parent | e30ad77ffa471c4aa00c07cca49eb96bd6065612 (diff) | |
fix: add warning for invalid unstable feature use in deno.json/jsonc (#24120)
Diffstat (limited to 'tests')
4 files changed, 34 insertions, 0 deletions
diff --git a/tests/specs/task/invalid_unstable_feature/__test__.jsonc b/tests/specs/task/invalid_unstable_feature/__test__.jsonc new file mode 100644 index 000000000..bfac9d153 --- /dev/null +++ b/tests/specs/task/invalid_unstable_feature/__test__.jsonc @@ -0,0 +1,6 @@ +{ + "steps": [{ + "args": "task start", + "output": "invalid_unstable_feature.out" + }] +} diff --git a/tests/specs/task/invalid_unstable_feature/deno.json b/tests/specs/task/invalid_unstable_feature/deno.json new file mode 100644 index 000000000..36f084e47 --- /dev/null +++ b/tests/specs/task/invalid_unstable_feature/deno.json @@ -0,0 +1,22 @@ +{ + "tasks": { + "start": "deno run index.js" + }, + "unstable": [ + "abc", + "byonm", + "bare-node-builtins", + "sloppy-imports", + "unsafe-proto", + "webgpu", + "broadcast-channel", + "worker-options", + "cron", + "kv", + "ffi", + "fs", + "net", + "http", + "cba" + ] +} diff --git a/tests/specs/task/invalid_unstable_feature/index.js b/tests/specs/task/invalid_unstable_feature/index.js new file mode 100644 index 000000000..fb5a295b6 --- /dev/null +++ b/tests/specs/task/invalid_unstable_feature/index.js @@ -0,0 +1 @@ +console.log("Hello unstable features"); diff --git a/tests/specs/task/invalid_unstable_feature/invalid_unstable_feature.out b/tests/specs/task/invalid_unstable_feature/invalid_unstable_feature.out new file mode 100644 index 000000000..78c4eaca9 --- /dev/null +++ b/tests/specs/task/invalid_unstable_feature/invalid_unstable_feature.out @@ -0,0 +1,5 @@ +Task start deno run index.js +Warning Sloppy imports are not recommended and have a negative impact on performance. +Warning 'abc' isn't a valid unstable feature +Warning 'cba' isn't a valid unstable feature +Hello unstable features |
