MCPcopy Create free account
hub / github.com/nodejs/node / getCases

Function getCases

deps/npm/test/lib/utils/explain-dep.js:8–251  ·  view source on GitHub ↗
(testdir)

Source from the content-addressed store, hash-verified

6t.cleanSnapshot = (str) => cleanCwd(str)
7
8const getCases = (testdir) => {
9 const cases = {
10 prodDep: {
11 name: 'prod-dep',
12 version: '1.2.3',
13 location: 'node_modules/prod-dep',
14 dependents: [
15 {
16 type: 'prod',
17 name: 'prod-dep',
18 spec: '1.x',
19 from: {
20 location: '/path/to/project',
21 },
22 },
23 ],
24 },
25
26 deepDev: {
27 name: 'deep-dev',
28 version: '2.3.4',
29 location: 'node_modules/deep-dev',
30 dev: true,
31 dependents: [
32 {
33 type: 'prod',
34 name: 'deep-dev',
35 spec: '2.x',
36 from: {
37 name: 'metadev',
38 version: '3.4.5',
39 location: 'node_modules/dev/node_modules/metadev',
40 dependents: [
41 {
42 type: 'prod',
43 name: 'metadev',
44 spec: '3.x',
45 from: {
46 name: 'topdev',
47 version: '4.5.6',
48 location: 'node_modules/topdev',
49 dependents: [
50 {
51 type: 'dev',
52 name: 'topdev',
53 spec: '4.x',
54 from: {
55 location: '/path/to/project',
56 },
57 },
58 ],
59 },
60 },
61 ],
62 },
63 },
64 ],
65 },

Callers 1

explain-dep.jsFile · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected