Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2022-08-04 23:43:27 +0300
committerGar <wraithgar@github.com>2022-08-08 18:46:41 +0300
commit96b6781086143d7285c2c5bf7808c24b2c87e4dd (patch)
treebb06afbd91f4c3355752d4b4f20816f0454ce9e4 /workspaces/arborist/tap-snapshots
parentca756fda3e0ddff2c0aeb85c21b10977c8bce3b6 (diff)
feat(arborist): add option to forcibly skip loading a virtual tree
Diffstat (limited to 'workspaces/arborist/tap-snapshots')
-rw-r--r--workspaces/arborist/tap-snapshots/test/arborist/load-actual.js.test.cjs35
1 files changed, 34 insertions, 1 deletions
diff --git a/workspaces/arborist/tap-snapshots/test/arborist/load-actual.js.test.cjs b/workspaces/arborist/tap-snapshots/test/arborist/load-actual.js.test.cjs
index b7177c7d2..35ba9f7ca 100644
--- a/workspaces/arborist/tap-snapshots/test/arborist/load-actual.js.test.cjs
+++ b/workspaces/arborist/tap-snapshots/test/arborist/load-actual.js.test.cjs
@@ -1084,6 +1084,39 @@ ArboristNode {
}
`
+exports[`test/arborist/load-actual.js TAP do not load from a hidden lockfile when forceActual is set > must match snapshot 1`] = `
+ArboristNode {
+ "children": Map {
+ "abbrev" => ArboristNode {
+ "edgesIn": Set {
+ EdgeIn {
+ "from": "",
+ "name": "abbrev",
+ "spec": "^1.1.1",
+ "type": "prod",
+ },
+ },
+ "location": "node_modules/abbrev",
+ "name": "abbrev",
+ "path": "hidden-lockfile/node_modules/abbrev",
+ "version": "1.1.1",
+ },
+ },
+ "edgesOut": Map {
+ "abbrev" => EdgeOut {
+ "name": "abbrev",
+ "spec": "^1.1.1",
+ "to": "node_modules/abbrev",
+ "type": "prod",
+ },
+ },
+ "isProjectRoot": true,
+ "location": "",
+ "name": "hidden-lockfile",
+ "path": "hidden-lockfile",
+}
+`
+
exports[`test/arborist/load-actual.js TAP external-dep/root > loaded tree 1`] = `
ArboristNode {
"edgesOut": Map {
@@ -3760,7 +3793,7 @@ ArboristNode {
}
`
-exports[`test/arborist/load-actual.js TAP load from a hidden lockfile > expect resolving Promise 1`] = `
+exports[`test/arborist/load-actual.js TAP load from a hidden lockfile > must match snapshot 1`] = `
ArboristNode {
"children": Map {
"abbrev" => ArboristNode {