summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/bundle/lockfile/__test__.jsonc5
-rw-r--r--tests/specs/bundle/lockfile/check_error.json5
-rw-r--r--tests/specs/bundle/lockfile/check_error.out12
-rw-r--r--tests/specs/bundle/removed/__test__.jsonc13
-rw-r--r--tests/specs/bundle/removed/bundle.out3
-rw-r--r--tests/specs/bundle/removed/bundle_help.out10
-rw-r--r--tests/specs/cert/cafile_bundle/RootCA.pem19
-rw-r--r--tests/specs/cert/cafile_bundle/__test__.jsonc11
-rw-r--r--tests/specs/cert/cafile_bundle/test.js2
-rw-r--r--tests/specs/npm/es_module/__test__.jsonc5
-rw-r--r--tests/specs/npm/es_module/bundle.out1
11 files changed, 26 insertions, 60 deletions
diff --git a/tests/specs/bundle/lockfile/__test__.jsonc b/tests/specs/bundle/lockfile/__test__.jsonc
deleted file mode 100644
index 3fe64a28b..000000000
--- a/tests/specs/bundle/lockfile/__test__.jsonc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "args": "bundle --lock=check_error.json http://127.0.0.1:4545/subdir/mod1.ts",
- "output": "check_error.out",
- "exitCode": 10
-}
diff --git a/tests/specs/bundle/lockfile/check_error.json b/tests/specs/bundle/lockfile/check_error.json
deleted file mode 100644
index a218d7000..000000000
--- a/tests/specs/bundle/lockfile/check_error.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "http://127.0.0.1:4545/subdir/mod1.ts": "bfc1037b02c99abc20367f739bca7455813a5950066abd77965bff33b6eece0f",
- "http://127.0.0.1:4545/subdir/print_hello.ts": "fa6692c8f9ff3fb107e773c3ece5274e9d08be282867a1e3ded1d9c00fcaa63c",
- "http://127.0.0.1:4545/subdir/subdir2/mod2.ts": "bad"
-}
diff --git a/tests/specs/bundle/lockfile/check_error.out b/tests/specs/bundle/lockfile/check_error.out
deleted file mode 100644
index 6a63a01b4..000000000
--- a/tests/specs/bundle/lockfile/check_error.out
+++ /dev/null
@@ -1,12 +0,0 @@
-[WILDCARD]
-error: Integrity check failed for remote specifier. The source code is invalid, as it does not match the expected hash in the lock file.
-
- Specifier: http://127.0.0.1:4545/subdir/subdir2/mod2.ts
- Actual: 8b3b670d25d238dfa72df119140406b96766a00fee635f3606429fe065b18fd1
- Expected: bad
-
-This could be caused by:
- * the lock file may be corrupt
- * the source itself may be corrupt
-
-Investigate the lockfile; delete it to regenerate the lockfile or --reload to reload the source code from the server.
diff --git a/tests/specs/bundle/removed/__test__.jsonc b/tests/specs/bundle/removed/__test__.jsonc
new file mode 100644
index 000000000..b33842de2
--- /dev/null
+++ b/tests/specs/bundle/removed/__test__.jsonc
@@ -0,0 +1,13 @@
+{
+ "steps": [
+ {
+ "args": "bundle",
+ "output": "bundle.out",
+ "exitCode": 1
+ },
+ {
+ "args": "bundle --help",
+ "output": "bundle_help.out"
+ }
+ ]
+}
diff --git a/tests/specs/bundle/removed/bundle.out b/tests/specs/bundle/removed/bundle.out
new file mode 100644
index 000000000..d1d8d00d6
--- /dev/null
+++ b/tests/specs/bundle/removed/bundle.out
@@ -0,0 +1,3 @@
+error: ⚠️ `deno bundle` was removed in Deno 2.
+
+See the Deno 1.x to 2.x Migration Guide for migration instructions: https://docs.deno.com/runtime/manual/advanced/migrate_deprecations
diff --git a/tests/specs/bundle/removed/bundle_help.out b/tests/specs/bundle/removed/bundle_help.out
new file mode 100644
index 000000000..d8e83b95d
--- /dev/null
+++ b/tests/specs/bundle/removed/bundle_help.out
@@ -0,0 +1,10 @@
+⚠️ `deno bundle` was removed in Deno 2.
+
+See the Deno 1.x to 2.x Migration Guide for migration instructions: https://docs.deno.com/runtime/manual/advanced/migrate_deprecations
+
+Usage: deno bundle [OPTIONS]
+
+Options:
+ -q, --quiet Suppress diagnostic output
+ --unstable Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features
+ To view the list of individual unstable feature flags, run this command again with --help=unstable
diff --git a/tests/specs/cert/cafile_bundle/RootCA.pem b/tests/specs/cert/cafile_bundle/RootCA.pem
deleted file mode 100644
index c2f84ceeb..000000000
--- a/tests/specs/cert/cafile_bundle/RootCA.pem
+++ /dev/null
@@ -1,19 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIDIzCCAgugAwIBAgIJAMKPPW4tsOymMA0GCSqGSIb3DQEBCwUAMCcxCzAJBgNV
-BAYTAlVTMRgwFgYDVQQDDA9FeGFtcGxlLVJvb3QtQ0EwIBcNMTkxMDIxMTYyODIy
-WhgPMjExODA5MjcxNjI4MjJaMCcxCzAJBgNVBAYTAlVTMRgwFgYDVQQDDA9FeGFt
-cGxlLVJvb3QtQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDMH/IO
-2qtHfyBKwANNPB4K0q5JVSg8XxZdRpTTlz0CwU0oRO3uHrI52raCCfVeiQutyZop
-eFZTDWeXGudGAFA2B5m3orWt0s+touPi8MzjsG2TQ+WSI66QgbXTNDitDDBtTVcV
-5G3Ic+3SppQAYiHSekLISnYWgXLl+k5CnEfTowg6cjqjVr0KjL03cTN3H7b+6+0S
-ws4rYbW1j4ExR7K6BFNH6572yq5qR20E6GqlY+EcOZpw4CbCk9lS8/CWuXze/vMs
-OfDcc6K+B625d27wyEGZHedBomT2vAD7sBjvO8hn/DP1Qb46a8uCHR6NSfnJ7bXO
-G1igaIbgY1zXirNdAgMBAAGjUDBOMB0GA1UdDgQWBBTzut+pwwDfqmMYcI9KNWRD
-hxcIpTAfBgNVHSMEGDAWgBTzut+pwwDfqmMYcI9KNWRDhxcIpTAMBgNVHRMEBTAD
-AQH/MA0GCSqGSIb3DQEBCwUAA4IBAQB9AqSbZ+hEglAgSHxAMCqRFdhVu7MvaQM0
-P090mhGlOCt3yB7kdGfsIrUW6nQcTz7PPQFRaJMrFHPvFvPootkBUpTYR4hTkdce
-H6RCRu2Jxl4Y9bY/uezd9YhGCYfUtfjA6/TH9FcuZfttmOOlxOt01XfNvVMIR6RM
-z/AYhd+DeOXjr35F/VHeVpnk+55L0PYJsm1CdEbOs5Hy1ecR7ACuDkXnbM4fpz9I
-kyIWJwk2zJReKcJMgi1aIinDM9ao/dca1G99PHOw8dnr4oyoTiv8ao6PWiSRHHMi
-MNf4EgWfK+tZMnuqfpfO9740KzfcVoMNo4QJD4yn5YxroUOO/Azi
------END CERTIFICATE-----
diff --git a/tests/specs/cert/cafile_bundle/__test__.jsonc b/tests/specs/cert/cafile_bundle/__test__.jsonc
deleted file mode 100644
index 75c6c87a9..000000000
--- a/tests/specs/cert/cafile_bundle/__test__.jsonc
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "tempDir": true,
- "steps": [{
- "args": "bundle --cert RootCA.pem https://localhost:5545/subdir/mod1.ts mod1.bundle.js",
- "flaky": true,
- "output": "[WILDCARD]"
- }, {
- "args": "run --quiet --check test.js",
- "output": "[WILDCARD]Hello\n"
- }]
-}
diff --git a/tests/specs/cert/cafile_bundle/test.js b/tests/specs/cert/cafile_bundle/test.js
deleted file mode 100644
index 475af44d2..000000000
--- a/tests/specs/cert/cafile_bundle/test.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import { printHello3 } from "./mod1.bundle.js";
-printHello3();
diff --git a/tests/specs/npm/es_module/__test__.jsonc b/tests/specs/npm/es_module/__test__.jsonc
index d72db753f..2ab61686e 100644
--- a/tests/specs/npm/es_module/__test__.jsonc
+++ b/tests/specs/npm/es_module/__test__.jsonc
@@ -14,11 +14,6 @@
"import chalk from 'npm:chalk@5'; console.log(chalk.green('chalk esm loads'));"
],
"output": "main.out"
- },
- "bundle": {
- "args": "bundle --quiet main.js",
- "output": "bundle.out",
- "exitCode": 1
}
}
}
diff --git a/tests/specs/npm/es_module/bundle.out b/tests/specs/npm/es_module/bundle.out
deleted file mode 100644
index c749a236a..000000000
--- a/tests/specs/npm/es_module/bundle.out
+++ /dev/null
@@ -1 +0,0 @@
-error: npm specifiers have not yet been implemented for this subcommand (https://github.com/denoland/deno/issues/15960). Found: npm:/chalk@5.0.1