nodejs/deps/npm/tap-snapshots/test/lib/commands/version.js.test.cjs
npm CLI robot 3bef54918b
deps: upgrade npm to 9.1.3
PR-URL: https://github.com/nodejs/node/pull/45693
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruy Adorno <ruyadorno@google.com>
2022-12-07 03:18:33 +00:00

79 lines
1.7 KiB
JavaScript

/* IMPORTANT
* This snapshot file is auto-generated, but designed for humans.
* It should be checked into source control and tracked carefully.
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/lib/commands/version.js TAP empty versions workspaces with one arg, all workspaces > must match snapshot 1`] = `
{
"name": "workspaces-test",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "workspaces-test",
"version": "1.0.0",
"workspaces": [
"workspace-a",
"workspace-b"
]
},
"node_modules/workspace-a": {
"resolved": "workspace-a",
"link": true
},
"node_modules/workspace-b": {
"resolved": "workspace-b",
"link": true
},
"workspace-a": {
"version": "2.0.0"
},
"workspace-b": {
"version": "2.0.0"
}
}
}
`
exports[`test/lib/commands/version.js TAP empty versions workspaces with one arg, all workspaces, saves package.json > must match snapshot 1`] = `
{
"name": "workspaces-test",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "workspaces-test",
"version": "1.0.0",
"workspaces": [
"workspace-a",
"workspace-b"
],
"dependencies": {
"workspace-a": "^2.0.0",
"workspace-b": "^2.0.0"
}
},
"node_modules/workspace-a": {
"resolved": "workspace-a",
"link": true
},
"node_modules/workspace-b": {
"resolved": "workspace-b",
"link": true
},
"workspace-a": {
"version": "2.0.0"
},
"workspace-b": {
"version": "2.0.0"
}
}
}
`