diff options
| author | HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com> | 2024-08-20 20:53:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-20 19:53:53 +0200 |
| commit | 07044547559cafe1a86afc0f1dec13967803eb11 (patch) | |
| tree | 720f95efe02027406bf65b308bca6ef3987ef951 /tests/specs/install/install_deprecated_package/__test__.jsonc | |
| parent | 5168700be669179382462214724115a3013cb58e (diff) | |
feat: Print deprecation message for npm packages (#24992)
This commit adds ability to print deprecation notices
for npm packages that have been marked as deprecated.
Closes #24013
Diffstat (limited to 'tests/specs/install/install_deprecated_package/__test__.jsonc')
| -rw-r--r-- | tests/specs/install/install_deprecated_package/__test__.jsonc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/specs/install/install_deprecated_package/__test__.jsonc b/tests/specs/install/install_deprecated_package/__test__.jsonc new file mode 100644 index 000000000..23c9cdb3f --- /dev/null +++ b/tests/specs/install/install_deprecated_package/__test__.jsonc @@ -0,0 +1,25 @@ +{ + "tempDir": true, + "envs": { + "DENO_FUTURE": "1" + }, + "steps": [ + { + "args": "install npm:@denotest/deprecated-package", + "output": "install.out" + }, + { + // make sure the dep got cached + "args": "run --cached-only main.js", + "exitCode": 0, + "output": "" + }, + { + "args": [ + "eval", + "console.log(Deno.readTextFileSync('package.json').trim())" + ], + "output": "package.json.out" + } + ] +} |
