• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* IMPORTANT
2 * This snapshot file is auto-generated, but designed for humans.
3 * It should be checked into source control and tracked carefully.
4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5 * Make sure to inspect the output below.  Do not ignore changes!
6 */
7'use strict'
8exports[`test/lib/commands/outdated.js TAP aliases > should display aliased outdated dep output 1`] = `
9Package         Current  Wanted  Latest  Location          Depended by
10cat:dog@latest    1.0.0   2.0.0   2.0.0  node_modules/cat  prefix
11`
12
13exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --all > must match snapshot 1`] = `
14Package  Current  Wanted  Latest  Location           Depended by
15cat        1.0.0   1.0.1   1.0.1  node_modules/cat   prefix
16chai       1.0.0   1.0.1   1.0.1  node_modules/chai  prefix
17dog        1.0.1   1.0.1   2.0.0  node_modules/dog   prefix
18theta    MISSING   1.0.1   1.0.1  -                  prefix
19`
20
21exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --json --long > must match snapshot 1`] = `
22{
23  "cat": {
24    "current": "1.0.0",
25    "wanted": "1.0.1",
26    "latest": "1.0.1",
27    "dependent": "prefix",
28    "location": "{CWD}/prefix/node_modules/cat",
29    "type": "dependencies"
30  },
31  "chai": {
32    "current": "1.0.0",
33    "wanted": "1.0.1",
34    "latest": "1.0.1",
35    "dependent": "prefix",
36    "location": "{CWD}/prefix/node_modules/chai",
37    "type": "peerDependencies"
38  },
39  "dog": {
40    "current": "1.0.1",
41    "wanted": "1.0.1",
42    "latest": "2.0.0",
43    "dependent": "prefix",
44    "location": "{CWD}/prefix/node_modules/dog",
45    "type": "dependencies"
46  },
47  "theta": {
48    "wanted": "1.0.1",
49    "latest": "1.0.1",
50    "dependent": "prefix",
51    "type": "dependencies"
52  }
53}
54`
55
56exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --json > must match snapshot 1`] = `
57{
58  "cat": {
59    "current": "1.0.0",
60    "wanted": "1.0.1",
61    "latest": "1.0.1",
62    "dependent": "prefix",
63    "location": "{CWD}/prefix/node_modules/cat"
64  },
65  "chai": {
66    "current": "1.0.0",
67    "wanted": "1.0.1",
68    "latest": "1.0.1",
69    "dependent": "prefix",
70    "location": "{CWD}/prefix/node_modules/chai"
71  },
72  "dog": {
73    "current": "1.0.1",
74    "wanted": "1.0.1",
75    "latest": "2.0.0",
76    "dependent": "prefix",
77    "location": "{CWD}/prefix/node_modules/dog"
78  },
79  "theta": {
80    "wanted": "1.0.1",
81    "latest": "1.0.1",
82    "dependent": "prefix"
83  }
84}
85`
86
87exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --long > must match snapshot 1`] = `
88Package  Current  Wanted  Latest  Location           Depended by  Package Type      Homepage
89cat        1.0.0   1.0.1   1.0.1  node_modules/cat   prefix       dependencies
90chai       1.0.0   1.0.1   1.0.1  node_modules/chai  prefix       peerDependencies
91dog        1.0.1   1.0.1   2.0.0  node_modules/dog   prefix       dependencies
92theta    MISSING   1.0.1   1.0.1  -                  prefix       dependencies
93`
94
95exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --omit=dev --omit=peer > must match snapshot 1`] = `
96Package  Current  Wanted  Latest  Location          Depended by
97cat        1.0.0   1.0.1   1.0.1  node_modules/cat  prefix
98dog        1.0.1   1.0.1   2.0.0  node_modules/dog  prefix
99theta    MISSING   1.0.1   1.0.1  -                 prefix
100`
101
102exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --omit=dev > must match snapshot 1`] = `
103Package  Current  Wanted  Latest  Location           Depended by
104cat        1.0.0   1.0.1   1.0.1  node_modules/cat   prefix
105chai       1.0.0   1.0.1   1.0.1  node_modules/chai  prefix
106dog        1.0.1   1.0.1   2.0.0  node_modules/dog   prefix
107theta    MISSING   1.0.1   1.0.1  -                  prefix
108`
109
110exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --omit=prod > must match snapshot 1`] = `
111Package  Current  Wanted  Latest  Location           Depended by
112cat        1.0.0   1.0.1   1.0.1  node_modules/cat   prefix
113chai       1.0.0   1.0.1   1.0.1  node_modules/chai  prefix
114dog        1.0.1   1.0.1   2.0.0  node_modules/dog   prefix
115`
116
117exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable --long > must match snapshot 1`] = `
118{CWD}/prefix/node_modules/cat:cat@1.0.1:cat@1.0.0:cat@1.0.1:prefix:dependencies:
119{CWD}/prefix/node_modules/chai:chai@1.0.1:chai@1.0.0:chai@1.0.1:prefix:peerDependencies:
120{CWD}/prefix/node_modules/dog:dog@1.0.1:dog@1.0.1:dog@2.0.0:prefix:dependencies:
121:theta@1.0.1:MISSING:theta@1.0.1:prefix:dependencies:
122`
123
124exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable > must match snapshot 1`] = `
125{CWD}/prefix/node_modules/cat:cat@1.0.1:cat@1.0.0:cat@1.0.1:prefix
126{CWD}/prefix/node_modules/chai:chai@1.0.1:chai@1.0.0:chai@1.0.1:prefix
127{CWD}/prefix/node_modules/dog:dog@1.0.1:dog@1.0.1:dog@2.0.0:prefix
128:theta@1.0.1:MISSING:theta@1.0.1:prefix
129`
130
131exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated > must match snapshot 1`] = `
132Package  Current  Wanted  Latest  Location           Depended by
133cat        1.0.0   1.0.1   1.0.1  node_modules/cat   prefix
134chai       1.0.0   1.0.1   1.0.1  node_modules/chai  prefix
135dog        1.0.1   1.0.1   2.0.0  node_modules/dog   prefix
136theta    MISSING   1.0.1   1.0.1  -                  prefix
137`
138
139exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated global > must match snapshot 1`] = `
140Package  Current  Wanted  Latest  Location          Depended by
141cat        1.0.0   1.0.1   1.0.1  node_modules/cat  global
142`
143
144exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated specific dep > must match snapshot 1`] = `
145Package  Current  Wanted  Latest  Location          Depended by
146cat        1.0.0   1.0.1   1.0.1  node_modules/cat  prefix
147`
148
149exports[`test/lib/commands/outdated.js TAP workspaces should display all dependencies > output 1`] = `
150Package  Current  Wanted  Latest  Location           Depended by
151cat        1.0.0   1.0.1   1.0.1  node_modules/cat   a@1.0.0
152chai       1.0.0   1.0.1   1.0.1  node_modules/chai  foo
153dog        1.0.1   1.0.1   2.0.0  node_modules/dog   prefix
154theta    MISSING   1.0.1   1.0.1  -                  c@1.0.0
155`
156
157exports[`test/lib/commands/outdated.js TAP workspaces should display json results filtered by ws > output 1`] = `
158{
159  "cat": {
160    "current": "1.0.0",
161    "wanted": "1.0.1",
162    "latest": "1.0.1",
163    "dependent": "a",
164    "location": "{CWD}/prefix/node_modules/cat"
165  }
166}
167`
168
169exports[`test/lib/commands/outdated.js TAP workspaces should display missing deps when filtering by ws > output 1`] = `
170Package  Current  Wanted  Latest  Location  Depended by
171theta    MISSING   1.0.1   1.0.1  -         c@1.0.0
172`
173
174exports[`test/lib/commands/outdated.js TAP workspaces should display nested deps when filtering by ws and using --all > output 1`] = `
175Package  Current  Wanted  Latest  Location           Depended by
176cat        1.0.0   1.0.1   1.0.1  node_modules/cat   a@1.0.0
177chai       1.0.0   1.0.1   1.0.1  node_modules/chai  foo
178`
179
180exports[`test/lib/commands/outdated.js TAP workspaces should display no results if ws has no deps to display > output 1`] = `
181
182`
183
184exports[`test/lib/commands/outdated.js TAP workspaces should display only root outdated when ws disabled > output 1`] = `
185
186`
187
188exports[`test/lib/commands/outdated.js TAP workspaces should display parseable results filtered by ws > output 1`] = `
189{CWD}/prefix/node_modules/cat:cat@1.0.1:cat@1.0.0:cat@1.0.1:a
190`
191
192exports[`test/lib/commands/outdated.js TAP workspaces should display results filtered by ws > output 1`] = `
193Package  Current  Wanted  Latest  Location          Depended by
194cat        1.0.0   1.0.1   1.0.1  node_modules/cat  a@1.0.0
195`
196
197exports[`test/lib/commands/outdated.js TAP workspaces should display ws outdated deps human output > output 1`] = `
198Package  Current  Wanted  Latest  Location          Depended by
199cat        1.0.0   1.0.1   1.0.1  node_modules/cat  a@1.0.0
200dog        1.0.1   1.0.1   2.0.0  node_modules/dog  prefix
201theta    MISSING   1.0.1   1.0.1  -                 c@1.0.0
202`
203
204exports[`test/lib/commands/outdated.js TAP workspaces should display ws outdated deps json output > output 1`] = `
205{
206  "cat": {
207    "current": "1.0.0",
208    "wanted": "1.0.1",
209    "latest": "1.0.1",
210    "dependent": "a",
211    "location": "{CWD}/prefix/node_modules/cat"
212  },
213  "dog": {
214    "current": "1.0.1",
215    "wanted": "1.0.1",
216    "latest": "2.0.0",
217    "dependent": "prefix",
218    "location": "{CWD}/prefix/node_modules/dog"
219  },
220  "theta": {
221    "wanted": "1.0.1",
222    "latest": "1.0.1",
223    "dependent": "c"
224  }
225}
226`
227
228exports[`test/lib/commands/outdated.js TAP workspaces should display ws outdated deps parseable output > output 1`] = `
229{CWD}/prefix/node_modules/cat:cat@1.0.1:cat@1.0.0:cat@1.0.1:a
230{CWD}/prefix/node_modules/dog:dog@1.0.1:dog@1.0.1:dog@2.0.0:prefix
231:theta@1.0.1:MISSING:theta@1.0.1:c
232`
233
234exports[`test/lib/commands/outdated.js TAP workspaces should highlight ws in dependend by section > output 1`] = `
235Package  Current  Wanted  Latest  Location          Depended by
236cat        1.0.0   1.0.1   1.0.1  node_modules/cat  a@1.0.0
237dog        1.0.1   1.0.1   2.0.0  node_modules/dog  prefix
238theta    MISSING   1.0.1   1.0.1  -                 c@1.0.0
239`
240