summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/install/non_existent_optional_peer/__test__.jsonc11
-rw-r--r--tests/specs/install/non_existent_optional_peer/install.out6
-rw-r--r--tests/specs/install/non_existent_optional_peer/package.json5
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/specs/install/non_existent_optional_peer/__test__.jsonc b/tests/specs/install/non_existent_optional_peer/__test__.jsonc
new file mode 100644
index 000000000..b6527f614
--- /dev/null
+++ b/tests/specs/install/non_existent_optional_peer/__test__.jsonc
@@ -0,0 +1,11 @@
+// test imitates what crossws 0.2.4 has https://www.npmjs.com/package/crossws/v/0.2.4
+// where uWebSockets.js is an optional peer dep, but doesn't exist on npm
+{
+ "tempDir": true,
+ "steps": [
+ {
+ "args": "install",
+ "output": "install.out"
+ }
+ ]
+}
diff --git a/tests/specs/install/non_existent_optional_peer/install.out b/tests/specs/install/non_existent_optional_peer/install.out
new file mode 100644
index 000000000..292c1a4e2
--- /dev/null
+++ b/tests/specs/install/non_existent_optional_peer/install.out
@@ -0,0 +1,6 @@
+[UNORDERED_START]
+Download http://localhost:4260/@denotest/non-existent-optional-peer
+Download http://localhost:4260/uWebSockets.js
+Download http://localhost:4260/@denotest/non-existent-optional-peer/1.0.0.tgz
+[UNORDERED_END]
+Initialize @denotest/non-existent-optional-peer@1.0.0
diff --git a/tests/specs/install/non_existent_optional_peer/package.json b/tests/specs/install/non_existent_optional_peer/package.json
new file mode 100644
index 000000000..c8216ee3d
--- /dev/null
+++ b/tests/specs/install/non_existent_optional_peer/package.json
@@ -0,0 +1,5 @@
+{
+ "dependencies": {
+ "@denotest/non-existent-optional-peer": "1.0.0"
+ }
+}