diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-02-14 02:13:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 02:13:44 +0100 |
commit | 0f1349bca8d40dff23098e141363c956a8dd7875 (patch) | |
tree | dcf35d1e29081973134a7fc9bff2bf55b2ef098c /cli/tests | |
parent | bd6ddd9b469b01b3663bbd275b7b11f7ac6e1ec2 (diff) |
feat: Deprecate 'deno bundle' subcommand (#17695)
This commit adds a deprecation warning when using "deno bundle"
subcommand and removes it from the output of "deno help".
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/watcher_tests.rs | 7 | ||||
-rw-r--r-- | cli/tests/testdata/bundle/shebang_file.bundle.out | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/cli/tests/integration/watcher_tests.rs b/cli/tests/integration/watcher_tests.rs index 5ba16cd5e..99d5a5727 100644 --- a/cli/tests/integration/watcher_tests.rs +++ b/cli/tests/integration/watcher_tests.rs @@ -402,6 +402,8 @@ fn bundle_js_watch() { let (_stdout_lines, mut stderr_lines) = child_lines(&mut deno); + assert_contains!(stderr_lines.next().unwrap(), "Warning"); + assert_contains!(stderr_lines.next().unwrap(), "deno_emit"); assert_contains!(stderr_lines.next().unwrap(), "Check"); let next_line = stderr_lines.next().unwrap(); assert_contains!(&next_line, "Bundle started"); @@ -455,8 +457,9 @@ fn bundle_watch_not_exit() { .unwrap(); let (_stdout_lines, mut stderr_lines) = child_lines(&mut deno); - let next_line = stderr_lines.next().unwrap(); - assert_contains!(&next_line, "Bundle started"); + assert_contains!(stderr_lines.next().unwrap(), "Warning"); + assert_contains!(stderr_lines.next().unwrap(), "deno_emit"); + assert_contains!(stderr_lines.next().unwrap(), "Bundle started"); assert_contains!(stderr_lines.next().unwrap(), "error:"); assert_eq!(stderr_lines.next().unwrap(), ""); assert_eq!(stderr_lines.next().unwrap(), " syntax error ^^"); diff --git a/cli/tests/testdata/bundle/shebang_file.bundle.out b/cli/tests/testdata/bundle/shebang_file.bundle.out index df425f656..978fe6d97 100644 --- a/cli/tests/testdata/bundle/shebang_file.bundle.out +++ b/cli/tests/testdata/bundle/shebang_file.bundle.out @@ -1,3 +1,5 @@ +Warning "deno bundle" is deprecated and will be removed in the future. +Use alternative bundlers like "deno_emit", "esbuild" or "rollup" instead. Bundle file:///[WILDCARD]/subdir/shebang_file.js #!/usr/bin/env -S deno run --allow-read // deno-fmt-ignore-file |