Skip to content

Commit eaa2f8f

Browse files
committed
fixed test cases fails with mac and windows
1 parent ec90f79 commit eaa2f8f

2 files changed

Lines changed: 109 additions & 0 deletions

File tree

workspaces/arborist/tap-snapshots/test/arborist/reify.js.test.cjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5126,6 +5126,40 @@ exports[`test/arborist/reify.js TAP modules bundled by the root should be instal
51265126

51275127
`
51285128

5129+
exports[`test/arborist/reify.js TAP move aside symlink clutter > must match snapshot 1`] = `
5130+
ArboristNode {
5131+
"children": Map {
5132+
"abbrev" => ArboristNode {
5133+
"edgesIn": Set {
5134+
EdgeIn {
5135+
"from": "",
5136+
"name": "abbrev",
5137+
"spec": "latest",
5138+
"type": "prod",
5139+
},
5140+
},
5141+
"location": "node_modules/abbrev",
5142+
"name": "abbrev",
5143+
"path": "{CWD}/test/arborist/tap-testdir-reify-move-aside-symlink-clutter/node_modules/abbrev",
5144+
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
5145+
"version": "1.1.1",
5146+
},
5147+
},
5148+
"edgesOut": Map {
5149+
"abbrev" => EdgeOut {
5150+
"name": "abbrev",
5151+
"spec": "latest",
5152+
"to": "node_modules/abbrev",
5153+
"type": "prod",
5154+
},
5155+
},
5156+
"isProjectRoot": true,
5157+
"location": "",
5158+
"name": "tap-testdir-reify-move-aside-symlink-clutter",
5159+
"path": "{CWD}/test/arborist/tap-testdir-reify-move-aside-symlink-clutter",
5160+
}
5161+
`
5162+
51295163
exports[`test/arborist/reify.js TAP multiple bundles at the same level > must match snapshot 1`] = `
51305164
ArboristNode {
51315165
"children": Map {

workspaces/arborist/tap-snapshots/test/shrinkwrap.js.test.cjs

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2739,6 +2739,81 @@ Object {
27392739
}
27402740
`
27412741

2742+
exports[`test/shrinkwrap.js TAP loadActual tests selflink > shrinkwrap data 2`] = `
2743+
Object {
2744+
"lockfileVersion": 3,
2745+
"name": "selflink",
2746+
"packages": Object {
2747+
"": Object {
2748+
"dependencies": Object {
2749+
"@scope/x": "",
2750+
"@scope/y": "",
2751+
"foo": "",
2752+
},
2753+
"name": "selflink",
2754+
"version": "1.2.3",
2755+
},
2756+
"node_modules/@scope/y": Object {
2757+
"dependencies": Object {
2758+
"foo": "*",
2759+
},
2760+
"version": "1.2.3",
2761+
},
2762+
"node_modules/@scope/z": Object {
2763+
"dependencies": Object {
2764+
"glob": "4",
2765+
},
2766+
"extraneous": true,
2767+
"version": "1.2.3",
2768+
},
2769+
"node_modules/@scope/z/node_modules/glob": Object {
2770+
"link": true,
2771+
"resolved": "node_modules/foo/node_modules/glob",
2772+
},
2773+
"node_modules/foo": Object {
2774+
"dependencies": Object {
2775+
"glob": "4",
2776+
"selflink": "*",
2777+
},
2778+
"version": "1.2.3",
2779+
},
2780+
"node_modules/foo/node_modules/glob": Object {
2781+
"version": "4.0.5",
2782+
},
2783+
"node_modules/foo/node_modules/glob/node_modules/graceful-fs": Object {
2784+
"extraneous": true,
2785+
"version": "3.0.2",
2786+
},
2787+
"node_modules/foo/node_modules/glob/node_modules/inherits": Object {
2788+
"extraneous": true,
2789+
"version": "2.0.1",
2790+
},
2791+
"node_modules/foo/node_modules/glob/node_modules/minimatch": Object {
2792+
"extraneous": true,
2793+
"version": "1.0.0",
2794+
},
2795+
"node_modules/foo/node_modules/glob/node_modules/minimatch/node_modules/lru-cache": Object {
2796+
"extraneous": true,
2797+
"version": "2.5.0",
2798+
},
2799+
"node_modules/foo/node_modules/glob/node_modules/minimatch/node_modules/sigmund": Object {
2800+
"extraneous": true,
2801+
"version": "1.0.0",
2802+
},
2803+
"node_modules/foo/node_modules/glob/node_modules/once": Object {
2804+
"extraneous": true,
2805+
"version": "1.3.0",
2806+
},
2807+
"node_modules/foo/node_modules/selflink": Object {
2808+
"link": true,
2809+
"resolved": "",
2810+
},
2811+
},
2812+
"requires": true,
2813+
"version": "1.2.3",
2814+
}
2815+
`
2816+
27422817
exports[`test/shrinkwrap.js TAP loadActual tests symlinked-node-modules/example > shrinkwrap data 1`] = `
27432818
Object {
27442819
"lockfileVersion": 3,

0 commit comments

Comments
 (0)