Debian Codegraph @

nyc/tap-snapshots/test-nyc-integration.js-TAP.test.js

raw
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'
8 exports[`test/nyc-integration.js TAP --all does not fail on ERR_REQUIRE_ESM > stdout 1`] = `
9 ------------|---------|----------|---------|---------|-------------------
10 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
11 ------------|---------|----------|---------|---------|-------------------
12 All files | 33.33 | 100 | 0 | 33.33 |
13 extra.mjs | 0 | 100 | 0 | 0 | 2
14 index.js | 0 | 100 | 0 | 0 | 2
15 script.cjs | 100 | 100 | 100 | 100 |
16 ------------|---------|----------|---------|---------|-------------------
17
18 `
19
20 exports[`test/nyc-integration.js TAP --all includes files with both .map files and inline source-maps > stdout 1`] = `
21 ----------|---------|----------|---------|---------|-------------------
22 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
23 ----------|---------|----------|---------|---------|-------------------
24 All files | 44.44 | 100 | 33.33 | 44.44 |
25 s1.js | 80 | 100 | 50 | 80 | 7
26 s2.js | 0 | 100 | 0 | 0 | 1-6
27 ----------|---------|----------|---------|---------|-------------------
28
29 `
30
31 exports[`test/nyc-integration.js TAP --all instruments unknown extensions as js > stdout 1`] = `
32 run
33 ------------------------|---------|----------|---------|---------|-------------------
34 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
35 ------------------------|---------|----------|---------|---------|-------------------
36 All files | 11.11 | 100 | 0 | 11.11 |
37 check-instrumented.es6 | 0 | 100 | 0 | 0 | 5-6
38 check-instrumented.js | 0 | 100 | 0 | 0 | 5-6
39 not-loaded.es6 | 0 | 100 | 100 | 0 | 1-2
40 not-loaded.js | 0 | 100 | 100 | 0 | 1-2
41 run.js | 100 | 100 | 100 | 100 |
42 ------------------------|---------|----------|---------|---------|-------------------
43
44 `
45
46 exports[`test/nyc-integration.js TAP --all uses source-maps to exclude original sources from reports > stdout 1`] = `
47 ----------|---------|----------|---------|---------|-------------------
48 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
49 ----------|---------|----------|---------|---------|-------------------
50 All files | 0 | 100 | 0 | 0 |
51 s2.js | 0 | 100 | 0 | 0 | 1-6
52 ----------|---------|----------|---------|---------|-------------------
53
54 `
55
56 exports[`test/nyc-integration.js TAP --check-coverage fails in any case when the underlying test failed > stderr 1`] = `
57 ERROR: Coverage for lines (33.33%) does not meet global threshold (49%)
58
59 `
60
61 exports[`test/nyc-integration.js TAP --check-coverage fails in any case when the underlying test failed > stdout 1`] = `
62 -------------------------|---------|----------|---------|---------|-------------------
63 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
64 -------------------------|---------|----------|---------|---------|-------------------
65 All files | 33.33 | 0 | 100 | 33.33 |
66 half-covered-failing.js | 33.33 | 0 | 100 | 33.33 | 5-8
67 -------------------------|---------|----------|---------|---------|-------------------
68
69 `
70
71 exports[`test/nyc-integration.js TAP --check-coverage fails when the expected coverage is below a threshold > stderr 1`] = `
72 ERROR: Coverage for lines (50%) does not meet global threshold (51%)
73
74 `
75
76 exports[`test/nyc-integration.js TAP --check-coverage fails when the expected coverage is below a threshold > stdout 1`] = `
77 -----------------|---------|----------|---------|---------|-------------------
78 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
79 -----------------|---------|----------|---------|---------|-------------------
80 All files | 50 | 50 | 100 | 50 |
81 half-covered.js | 50 | 50 | 100 | 50 | 6-8
82 -----------------|---------|----------|---------|---------|-------------------
83
84 `
85
86 exports[`test/nyc-integration.js TAP --check-coverage fails when the expected file coverage is below a threshold > stderr 1`] = `
87 ERROR: Coverage for lines (50%) does not meet threshold (51%) for ./half-covered.js
88
89 `
90
91 exports[`test/nyc-integration.js TAP --check-coverage fails when the expected file coverage is below a threshold > stdout 1`] = `
92 -----------------|---------|----------|---------|---------|-------------------
93 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
94 -----------------|---------|----------|---------|---------|-------------------
95 All files | 50 | 50 | 100 | 50 |
96 half-covered.js | 50 | 50 | 100 | 50 | 6-8
97 -----------------|---------|----------|---------|---------|-------------------
98
99 `
100
101 exports[`test/nyc-integration.js TAP --check-coverage succeeds when the expected coverage is above a threshold > stdout 1`] = `
102 -----------------|---------|----------|---------|---------|-------------------
103 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
104 -----------------|---------|----------|---------|---------|-------------------
105 All files | 50 | 50 | 100 | 50 |
106 half-covered.js | 50 | 50 | 100 | 50 | 6-8
107 -----------------|---------|----------|---------|---------|-------------------
108
109 `
110
111 exports[`test/nyc-integration.js TAP --exclude should allow default exclude rules to be overridden > stdout 1`] = `
112 ---------------------------------|---------|----------|---------|---------|-------------------
113 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
114 ---------------------------------|---------|----------|---------|---------|-------------------
115 All files | 0 | 0 | 0 | 0 |
116 cli | 0 | 0 | 0 | 0 |
117 args.js | 0 | 100 | 100 | 0 | 1
118 by-arg2.js | 0 | 0 | 100 | 0 | 1-7
119 classes.js | 0 | 100 | 0 | 0 | 5-15
120 conf-override-module.js | 0 | 100 | 100 | 0 | 1-2
121 conf-override-root.js | 0 | 0 | 100 | 0 | 1-23
122 empty.js | 0 | 0 | 0 | 0 |
123 env.js | 0 | 100 | 100 | 0 | 1
124 es6.js | 0 | 100 | 0 | 0 | 5-23
125 external-instrumenter.js | 0 | 0 | 0 | 0 | 1
126 gc.js | 0 | 100 | 100 | 0 | 2-3
127 half-covered-failing.js | 0 | 0 | 100 | 0 | 1-8
128 selfspawn-fibonacci.js | 0 | 0 | 0 | 0 | 2-30
129 skip-full.js | 0 | 100 | 100 | 0 | 1-2
130 test.js | 0 | 0 | 0 | 0 |
131 cli/fakebin | 0 | 100 | 100 | 0 |
132 npm-template.js | 0 | 100 | 100 | 0 | 2-9
133 cli/instrument-inplace | 0 | 100 | 0 | 0 |
134 file1.js | 0 | 100 | 0 | 0 | 2-5
135 file2.js | 0 | 100 | 0 | 0 | 2-5
136 cli/nyc-config-js | 0 | 0 | 100 | 0 |
137 ignore.js | 0 | 100 | 100 | 0 | 1
138 index.js | 0 | 0 | 100 | 0 | 1-10
139 nyc.config.js | 0 | 100 | 100 | 0 | 1
140 nycrc-config.js | 0 | 100 | 100 | 0 | 1
141 cli/nycrc | 0 | 0 | 100 | 0 |
142 ignore.js | 0 | 100 | 100 | 0 | 1
143 index.js | 0 | 0 | 100 | 0 | 1-10
144 cli/subdir/input-dir | 0 | 100 | 100 | 0 |
145 index.js | 0 | 100 | 100 | 0 | 2
146 cli/subdir/input-dir/exclude-me | 0 | 100 | 100 | 0 |
147 index.js | 0 | 100 | 100 | 0 | 2
148 cli/subdir/input-dir/include-me | 0 | 100 | 100 | 0 |
149 exclude-me.js | 0 | 100 | 100 | 0 | 2
150 include-me.js | 0 | 100 | 100 | 0 | 2
151 ---------------------------------|---------|----------|---------|---------|-------------------
152
153 `
154
155 exports[`test/nyc-integration.js TAP --ignore-class-method skips methods that match ignored name but still catches those that are not > stdout 1`] = `
156 ---------------------------------|---------|----------|---------|---------|-------------------
157 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
158 ---------------------------------|---------|----------|---------|---------|-------------------
159 All files | 1.44 | 0 | 5 | 1.87 |
160 cli | 2.06 | 0 | 5.56 | 3.08 |
161 args.js | 0 | 100 | 100 | 0 | 1
162 by-arg2.js | 0 | 0 | 100 | 0 | 1-7
163 classes.js | 66.67 | 100 | 50 | 66.67 | 6
164 conf-override-module.js | 0 | 100 | 100 | 0 | 1-2
165 conf-override-root.js | 0 | 0 | 100 | 0 | 1-23
166 empty.js | 0 | 0 | 0 | 0 |
167 env.js | 0 | 100 | 100 | 0 | 1
168 es6.js | 0 | 100 | 0 | 0 | 5-23
169 external-instrumenter.js | 0 | 0 | 0 | 0 | 1
170 gc.js | 0 | 100 | 100 | 0 | 2-3
171 half-covered-failing.js | 0 | 0 | 100 | 0 | 1-8
172 half-covered.js | 0 | 0 | 100 | 0 | 1-8
173 selfspawn-fibonacci.js | 0 | 0 | 0 | 0 | 2-30
174 skip-full.js | 0 | 100 | 100 | 0 | 1-2
175 cli/fakebin | 0 | 100 | 100 | 0 |
176 npm-template.js | 0 | 100 | 100 | 0 | 2-9
177 cli/instrument-inplace | 0 | 100 | 0 | 0 |
178 file1.js | 0 | 100 | 0 | 0 | 2-5
179 file2.js | 0 | 100 | 0 | 0 | 2-5
180 cli/nyc-config-js | 0 | 0 | 100 | 0 |
181 ignore.js | 0 | 100 | 100 | 0 | 1
182 index.js | 0 | 0 | 100 | 0 | 1-10
183 nycrc-config.js | 0 | 100 | 100 | 0 | 1
184 cli/nycrc | 0 | 0 | 100 | 0 |
185 ignore.js | 0 | 100 | 100 | 0 | 1
186 index.js | 0 | 0 | 100 | 0 | 1-10
187 cli/run-npm-test | 0 | 0 | 100 | 0 |
188 half-covered.js | 0 | 0 | 100 | 0 | 1-8
189 cli/run-npm-test-recursive | 0 | 0 | 100 | 0 |
190 half-covered.js | 0 | 0 | 100 | 0 | 1-8
191 cli/subdir/input-dir | 0 | 100 | 100 | 0 |
192 index.js | 0 | 100 | 100 | 0 | 2
193 cli/subdir/input-dir/exclude-me | 0 | 100 | 100 | 0 |
194 index.js | 0 | 100 | 100 | 0 | 2
195 cli/subdir/input-dir/include-me | 0 | 100 | 100 | 0 |
196 exclude-me.js | 0 | 100 | 100 | 0 | 2
197 include-me.js | 0 | 100 | 100 | 0 | 2
198 ---------------------------------|---------|----------|---------|---------|-------------------
199
200 `
201
202 exports[`test/nyc-integration.js TAP --include can be used to limit bin to instrumenting specific files > stdout 1`] = `
203 -----------------|---------|----------|---------|---------|-------------------
204 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
205 -----------------|---------|----------|---------|---------|-------------------
206 All files | 50 | 50 | 100 | 50 |
207 half-covered.js | 50 | 50 | 100 | 50 | 6-8
208 -----------------|---------|----------|---------|---------|-------------------
209
210 `
211
212 exports[`test/nyc-integration.js TAP --show-process-tree displays a tree of spawned processes > stdout 1`] = `
213 3
214 ------------------------|---------|----------|---------|---------|-------------------
215 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
216 ------------------------|---------|----------|---------|---------|-------------------
217 All files | 91.3 | 70 | 100 | 100 |
218 selfspawn-fibonacci.js | 91.3 | 70 | 100 | 100 | 6,27-29
219 ------------------------|---------|----------|---------|---------|-------------------
220 nyc
221 │ 100 % Lines
222 └─┬ node ./selfspawn-fibonacci.js 5
223 │ 100 % Lines
224 ├─┬ node ./selfspawn-fibonacci.js 4
225 │ │ 100 % Lines
226 │ ├─┬ node ./selfspawn-fibonacci.js 3
227 │ │ │ 100 % Lines
228 │ │ ├── node ./selfspawn-fibonacci.js 2
229 │ │ │ 35 % Lines
230 │ │ └── node ./selfspawn-fibonacci.js 1
231 │ │ 30 % Lines
232 │ └── node ./selfspawn-fibonacci.js 2
233 │ 35 % Lines
234 └─┬ node ./selfspawn-fibonacci.js 3
235 │ 100 % Lines
236 ├── node ./selfspawn-fibonacci.js 2
237 │ 35 % Lines
238 └── node ./selfspawn-fibonacci.js 1
239 30 % Lines
240
241
242 `
243
244 exports[`test/nyc-integration.js TAP --use-spawn-wrap=false is functional > stdout 1`] = `
245 3
246 ------------------------|---------|----------|---------|---------|-------------------
247 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
248 ------------------------|---------|----------|---------|---------|-------------------
249 All files | 91.3 | 70 | 100 | 100 |
250 selfspawn-fibonacci.js | 91.3 | 70 | 100 | 100 | 6,27-29
251 ------------------------|---------|----------|---------|---------|-------------------
252
253 `
254
255 exports[`test/nyc-integration.js TAP --use-spawn-wrap=true is functional > stdout 1`] = `
256 3
257 ------------------------|---------|----------|---------|---------|-------------------
258 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
259 ------------------------|---------|----------|---------|---------|-------------------
260 All files | 91.3 | 70 | 100 | 100 |
261 selfspawn-fibonacci.js | 91.3 | 70 | 100 | 100 | 6,27-29
262 ------------------------|---------|----------|---------|---------|-------------------
263
264 `
265
266 exports[`test/nyc-integration.js TAP allows .nycrc configuration to be overridden with command line args > stdout 1`] = `
267 TN:
268 SF:ignore.js
269 FNF:0
270 FNH:0
271 DA:1,1
272 LF:1
273 LH:1
274 BRF:0
275 BRH:0
276 end_of_record
277 TN:
278 SF:index.js
279 FNF:0
280 FNH:0
281 DA:1,1
282 DA:3,1
283 DA:5,1
284 DA:7,1
285 DA:8,0
286 DA:9,0
287 DA:10,0
288 LF:7
289 LH:4
290 BRDA:7,0,0,0
291 BRDA:7,0,1,1
292 BRF:2
293 BRH:1
294 end_of_record
295
296 `
297
298 exports[`test/nyc-integration.js TAP allows alternative high and low watermarks to be configured > stdout 1`] = `
299 -----------------|---------|----------|---------|---------|-------------------
300 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
301 -----------------|---------|----------|---------|---------|-------------------
302 All files  |  50 |  50 |  100 |  50 |  
303  half-covered.js |  50 |  50 |  100 |  50 | 6-8 
304 -----------------|---------|----------|---------|---------|-------------------
305
306 `
307
308 exports[`test/nyc-integration.js TAP allows an alternative cache folder to be specified > stdout 1`] = `
309 -----------------|---------|----------|---------|---------|-------------------
310 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
311 -----------------|---------|----------|---------|---------|-------------------
312 All files | 50 | 50 | 100 | 50 |
313 half-covered.js | 50 | 50 | 100 | 50 | 6-8
314 -----------------|---------|----------|---------|---------|-------------------
315
316 `
317
318 exports[`test/nyc-integration.js TAP allows nyc.config.js configuration to be overridden with command line args > stdout 1`] = `
319 TN:
320 SF:ignore.js
321 FNF:0
322 FNH:0
323 DA:1,1
324 LF:1
325 LH:1
326 BRF:0
327 BRH:0
328 end_of_record
329 TN:
330 SF:index.js
331 FNF:0
332 FNH:0
333 DA:1,1
334 DA:3,1
335 DA:5,1
336 DA:7,1
337 DA:8,0
338 DA:9,0
339 DA:10,0
340 LF:7
341 LH:4
342 BRDA:7,0,0,0
343 BRDA:7,0,1,1
344 BRF:2
345 BRH:1
346 end_of_record
347 TN:
348 SF:nyc.config.js
349 FNF:0
350 FNH:0
351 DA:1,0
352 LF:1
353 LH:0
354 BRF:0
355 BRH:0
356 end_of_record
357 TN:
358 SF:nycrc-config.js
359 FNF:0
360 FNH:0
361 DA:1,0
362 LF:1
363 LH:0
364 BRF:0
365 BRH:0
366 end_of_record
367
368 `
369
370 exports[`test/nyc-integration.js TAP allows package.json configuration to be overridden with command line args > stdout 1`] = `
371 TN:
372 SF:half-covered.js
373 FNF:0
374 FNH:0
375 DA:1,1
376 DA:3,1
377 DA:5,1
378 DA:6,0
379 DA:7,0
380 DA:8,0
381 LF:6
382 LH:3
383 BRDA:5,0,0,0
384 BRDA:5,0,1,1
385 BRF:2
386 BRH:1
387 end_of_record
388
389 `
390
391 exports[`test/nyc-integration.js TAP allows reserved word when es-modules is disabled > stdout 1`] = `
392 ---------------|---------|----------|---------|---------|-------------------
393 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
394 ---------------|---------|----------|---------|---------|-------------------
395 All files | 100 | 100 | 100 | 100 |
396 not-strict.js | 100 | 100 | 100 | 100 |
397 ---------------|---------|----------|---------|---------|-------------------
398
399 `
400
401 exports[`test/nyc-integration.js TAP appropriately instruments file with corresponding .map file > stdout 1`] = `
402 ----------|---------|----------|---------|---------|-------------------
403 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
404 ----------|---------|----------|---------|---------|-------------------
405 All files | 80 | 100 | 50 | 80 |
406 s1.js | 80 | 100 | 50 | 80 | 7
407 ----------|---------|----------|---------|---------|-------------------
408
409 `
410
411 exports[`test/nyc-integration.js TAP appropriately instruments file with inline source-map > stdout 1`] = `
412 ----------|---------|----------|---------|---------|-------------------
413 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
414 ----------|---------|----------|---------|---------|-------------------
415 All files | 100 | 100 | 100 | 100 |
416 s2.js | 100 | 100 | 100 | 100 |
417 ----------|---------|----------|---------|---------|-------------------
418
419 `
420
421 exports[`test/nyc-integration.js TAP caches inline source-maps > stdout 1`] = `
422 ----------|---------|----------|---------|---------|-------------------
423 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
424 ----------|---------|----------|---------|---------|-------------------
425 All files | 100 | 100 | 100 | 100 |
426 s2.js | 100 | 100 | 100 | 100 |
427 ----------|---------|----------|---------|---------|-------------------
428
429 `
430
431 exports[`test/nyc-integration.js TAP caches source-maps from .map files > stdout 1`] = `
432 ----------|---------|----------|---------|---------|-------------------
433 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
434 ----------|---------|----------|---------|---------|-------------------
435 All files | 80 | 100 | 50 | 80 |
436 s1.js | 80 | 100 | 50 | 80 | 7
437 ----------|---------|----------|---------|---------|-------------------
438
439 `
440
441 exports[`test/nyc-integration.js TAP can run "npm test" which directly invokes a test file > stdout 1`] = `
442
443 > @ test .
444 > node ./half-covered.js
445
446 -----------------|---------|----------|---------|---------|-------------------
447 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
448 -----------------|---------|----------|---------|---------|-------------------
449 All files | 50 | 50 | 100 | 50 |
450 half-covered.js | 50 | 50 | 100 | 50 | 6-8
451 -----------------|---------|----------|---------|---------|-------------------
452
453 `
454
455 exports[`test/nyc-integration.js TAP can run "npm test" which indirectly invokes a test file > stdout 1`] = `
456
457 > @ test .
458 > npm run test:deeper
459
460
461 > @ test:deeper .
462 > npm run test:even-deeper
463
464
465 > @ test:even-deeper .
466 > node ./half-covered.js
467
468 -----------------|---------|----------|---------|---------|-------------------
469 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
470 -----------------|---------|----------|---------|---------|-------------------
471 All files | 50 | 50 | 100 | 50 |
472 half-covered.js | 50 | 50 | 100 | 50 | 6-8
473 -----------------|---------|----------|---------|---------|-------------------
474
475 `
476
477 exports[`test/nyc-integration.js TAP check-coverage command is equivalent to the flag > stderr 1`] = `
478 ERROR: Coverage for lines (50%) does not meet global threshold (51%)
479
480 `
481
482 exports[`test/nyc-integration.js TAP check-coverage command is equivalent to the flag > stdout 1`] = `
483 -----------------|---------|----------|---------|---------|-------------------
484 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
485 -----------------|---------|----------|---------|---------|-------------------
486 All files | 50 | 50 | 100 | 50 |
487 half-covered.js | 50 | 50 | 100 | 50 | 6-8
488 -----------------|---------|----------|---------|---------|-------------------
489
490 `
491
492 exports[`test/nyc-integration.js TAP check-coverage command is equivalent to the flag > stdout 2`] = `
493
494 `
495
496 exports[`test/nyc-integration.js TAP combines multiple coverage reports > stdout 1`] = `
497 coverage files in ./merge-input merged into coverage.json
498
499 `
500
501 exports[`test/nyc-integration.js TAP does not create .cache folder if cache is "false" > stdout 1`] = `
502 -----------------|---------|----------|---------|---------|-------------------
503 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
504 -----------------|---------|----------|---------|---------|-------------------
505 All files | 50 | 50 | 100 | 50 |
506 half-covered.js | 50 | 50 | 100 | 50 | 6-8
507 -----------------|---------|----------|---------|---------|-------------------
508
509 `
510
511 exports[`test/nyc-integration.js TAP does not interpret args intended for instrumented bin > must match snapshot 1`] = `
512 Array [
513 "--help",
514 "--version",
515 ]
516 `
517
518 exports[`test/nyc-integration.js TAP execute with exclude-node-modules=false > stderr 1`] = `
519 ERROR: Coverage for lines (0%) does not meet threshold (90%) for ./node_modules/@istanbuljs/fake-module-1/index.js
520
521 `
522
523 exports[`test/nyc-integration.js TAP execute with exclude-node-modules=false > stderr 2`] = `
524 ERROR: Coverage for lines (0%) does not meet threshold (90%) for ./node_modules/@istanbuljs/fake-module-1/index.js
525
526 `
527
528 exports[`test/nyc-integration.js TAP execute with exclude-node-modules=false > stderr 3`] = `
529 ERROR: Coverage for lines (0%) does not meet threshold (90%) for ./node_modules/@istanbuljs/fake-module-1/index.js
530
531 `
532
533 exports[`test/nyc-integration.js TAP execute with exclude-node-modules=false > stdout 1`] = `
534 ----------|---------|----------|---------|---------|-------------------
535 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
536 ----------|---------|----------|---------|---------|-------------------
537 All files | 0 | 100 | 100 | 0 |
538 index.js | 0 | 100 | 100 | 0 | 1
539 ----------|---------|----------|---------|---------|-------------------
540
541 `
542
543 exports[`test/nyc-integration.js TAP execute with exclude-node-modules=false > stdout 2`] = `
544 ----------|---------|----------|---------|---------|-------------------
545 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
546 ----------|---------|----------|---------|---------|-------------------
547 All files | 0 | 100 | 100 | 0 |
548 index.js | 0 | 100 | 100 | 0 | 1
549 ----------|---------|----------|---------|---------|-------------------
550
551 `
552
553 exports[`test/nyc-integration.js TAP execute with exclude-node-modules=false > stdout 3`] = `
554 ----------|---------|----------|---------|---------|-------------------
555 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
556 ----------|---------|----------|---------|---------|-------------------
557 All files | 0 | 100 | 100 | 0 |
558 index.js | 0 | 100 | 100 | 0 | 1
559 ----------|---------|----------|---------|---------|-------------------
560
561 `
562
563 exports[`test/nyc-integration.js TAP execute with exclude-node-modules=false > stdout 4`] = `
564
565 `
566
567 exports[`test/nyc-integration.js TAP extracts coverage headers from unexecuted files > must match snapshot 1`] = `
568 [
569 [
570 "all",
571 true
572 ],
573 [
574 "instrument",
575 false
576 ],
577 [
578 "instrumenter",
579 "./lib/instrumenters/noop"
580 ],
581 [
582 "silent",
583 true
584 ],
585 [
586 "sourceMap",
587 false
588 ]
589 ]
590 `
591
592 exports[`test/nyc-integration.js TAP forbids reserved word when es-modules is not disabled > stderr 1`] = `
593 Failed to instrument ./not-strict.js
594
595 `
596
597 exports[`test/nyc-integration.js TAP forbids reserved word when es-modules is not disabled > stdout 1`] = `
598 ----------|---------|----------|---------|---------|-------------------
599 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
600 ----------|---------|----------|---------|---------|-------------------
601 All files | 0 | 0 | 0 | 0 |
602 ----------|---------|----------|---------|---------|-------------------
603
604 `
605
606 exports[`test/nyc-integration.js TAP handles --clean / --no-clean properly > stdout 1`] = `
607 1
608 ------------|---------|----------|---------|---------|-------------------
609 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
610 ------------|---------|----------|---------|---------|-------------------
611 All files | 50 | 25 | 100 | 50 |
612 by-arg2.js | 50 | 25 | 100 | 50 | 4-7
613 ------------|---------|----------|---------|---------|-------------------
614
615 `
616
617 exports[`test/nyc-integration.js TAP handles --clean / --no-clean properly > stdout 2`] = `
618 2
619 ------------|---------|----------|---------|---------|-------------------
620 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
621 ------------|---------|----------|---------|---------|-------------------
622 All files | 83.33 | 75 | 100 | 83.33 |
623 by-arg2.js | 83.33 | 75 | 100 | 83.33 | 7
624 ------------|---------|----------|---------|---------|-------------------
625
626 `
627
628 exports[`test/nyc-integration.js TAP hooks provide coverage for requireJS and AMD modules > stdout 1`] = `
629 ----------|---------|----------|---------|---------|-------------------
630 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
631 ----------|---------|----------|---------|---------|-------------------
632 All files | 100 | 100 | 100 | 100 |
633 ipsum.js | 100 | 100 | 100 | 100 |
634 lorem.js | 100 | 100 | 100 | 100 |
635 ----------|---------|----------|---------|---------|-------------------
636
637 `
638
639 exports[`test/nyc-integration.js TAP interprets first args after -- as Node.js execArgv > stdout 1`] = `
640 I’m still running
641 ----------|---------|----------|---------|---------|-------------------
642 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
643 ----------|---------|----------|---------|---------|-------------------
644 All files | 100 | 100 | 100 | 100 |
645 gc.js | 100 | 100 | 100 | 100 |
646 ----------|---------|----------|---------|---------|-------------------
647
648 `
649
650 exports[`test/nyc-integration.js TAP loads configuration from .nycrc.yaml > stdout 1`] = `
651 TN:
652 SF:index.js
653 FNF:0
654 FNH:0
655 DA:1,1
656 DA:3,1
657 DA:5,1
658 DA:7,1
659 DA:8,0
660 DA:9,0
661 DA:10,0
662 LF:7
663 LH:4
664 BRDA:7,0,0,0
665 BRDA:7,0,1,1
666 BRF:2
667 BRH:1
668 end_of_record
669
670 `
671
672 exports[`test/nyc-integration.js TAP loads configuration from .nycrc.yml > stdout 1`] = `
673 TN:
674 SF:index.js
675 FNF:0
676 FNH:0
677 DA:1,1
678 DA:3,1
679 DA:5,1
680 DA:7,1
681 DA:8,0
682 DA:9,0
683 DA:10,0
684 LF:7
685 LH:4
686 BRDA:7,0,0,0
687 BRDA:7,0,1,1
688 BRF:2
689 BRH:1
690 end_of_record
691
692 `
693
694 exports[`test/nyc-integration.js TAP loads configuration from different file rather than .nycrc > stderr 1`] = `
695 ERROR: Coverage for lines (57.14%) does not meet threshold (100%) for ./index.js
696 ERROR: Coverage for branches (50%) does not meet threshold (100%) for ./index.js
697 ERROR: Coverage for statements (57.14%) does not meet threshold (100%) for ./index.js
698
699 `
700
701 exports[`test/nyc-integration.js TAP loads configuration from different file rather than .nycrc > stdout 1`] = `
702 TN:
703 SF:ignore.js
704 FNF:0
705 FNH:0
706 DA:1,1
707 LF:1
708 LH:1
709 BRF:0
710 BRH:0
711 end_of_record
712 TN:
713 SF:index.js
714 FNF:0
715 FNH:0
716 DA:1,1
717 DA:3,1
718 DA:5,1
719 DA:7,1
720 DA:8,0
721 DA:9,0
722 DA:10,0
723 LF:7
724 LH:4
725 BRDA:7,0,0,0
726 BRDA:7,0,1,1
727 BRF:2
728 BRH:1
729 end_of_record
730
731 `
732
733 exports[`test/nyc-integration.js TAP loads configuration from different module rather than nyc.config.js > stderr 1`] = `
734 ERROR: Coverage for lines (57.14%) does not meet threshold (100%) for ./index.js
735 ERROR: Coverage for branches (50%) does not meet threshold (100%) for ./index.js
736 ERROR: Coverage for statements (57.14%) does not meet threshold (100%) for ./index.js
737 ERROR: Coverage for lines (0%) does not meet threshold (100%) for ./nyc.config.js
738 ERROR: Coverage for statements (0%) does not meet threshold (100%) for ./nyc.config.js
739 ERROR: Coverage for lines (0%) does not meet threshold (100%) for ./nycrc-config.js
740 ERROR: Coverage for statements (0%) does not meet threshold (100%) for ./nycrc-config.js
741
742 `
743
744 exports[`test/nyc-integration.js TAP loads configuration from different module rather than nyc.config.js > stdout 1`] = `
745 TN:
746 SF:ignore.js
747 FNF:0
748 FNH:0
749 DA:1,1
750 LF:1
751 LH:1
752 BRF:0
753 BRH:0
754 end_of_record
755 TN:
756 SF:index.js
757 FNF:0
758 FNH:0
759 DA:1,1
760 DA:3,1
761 DA:5,1
762 DA:7,1
763 DA:8,0
764 DA:9,0
765 DA:10,0
766 LF:7
767 LH:4
768 BRDA:7,0,0,0
769 BRDA:7,0,1,1
770 BRF:2
771 BRH:1
772 end_of_record
773 TN:
774 SF:nyc.config.js
775 FNF:0
776 FNH:0
777 DA:1,0
778 LF:1
779 LH:0
780 BRF:0
781 BRH:0
782 end_of_record
783 TN:
784 SF:nycrc-config.js
785 FNF:0
786 FNH:0
787 DA:1,0
788 LF:1
789 LH:0
790 BRF:0
791 BRH:0
792 end_of_record
793
794 `
795
796 exports[`test/nyc-integration.js TAP loads configuration from package.json and .nycrc > stdout 1`] = `
797 TN:
798 SF:index.js
799 FNF:0
800 FNH:0
801 DA:1,1
802 DA:3,1
803 DA:5,1
804 DA:7,1
805 DA:8,0
806 DA:9,0
807 DA:10,0
808 LF:7
809 LH:4
810 BRDA:7,0,0,0
811 BRDA:7,0,1,1
812 BRF:2
813 BRH:1
814 end_of_record
815
816 `
817
818 exports[`test/nyc-integration.js TAP loads configuration from package.json and nyc.config.js > stdout 1`] = `
819 TN:
820 SF:index.js
821 FNF:0
822 FNH:0
823 DA:1,1
824 DA:3,1
825 DA:5,1
826 DA:7,1
827 DA:8,0
828 DA:9,0
829 DA:10,0
830 LF:7
831 LH:4
832 BRDA:7,0,0,0
833 BRDA:7,0,1,1
834 BRF:2
835 BRH:1
836 end_of_record
837
838 `
839
840 exports[`test/nyc-integration.js TAP nyc instrument fails on file with \`package\` keyword when es-modules is enabled > stderr 1`] = `
841 Failed to instrument ./not-strict.js
842
843 `
844
845 exports[`test/nyc-integration.js TAP nyc instrument fails on file with \`package\` keyword when es-modules is enabled > stdout 1`] = `
846
847 `
848
849 exports[`test/nyc-integration.js TAP passes configuration via environment variables > must match snapshot 1`] = `
850 [
851 [
852 "cache",
853 false
854 ],
855 [
856 "cacheDir",
857 "/tmp"
858 ],
859 [
860 "exclude",
861 "batman.js"
862 ],
863 [
864 "extension",
865 ".js"
866 ],
867 [
868 "include",
869 "env.js"
870 ],
871 [
872 "instrumenter",
873 "./lib/instrumenters/istanbul"
874 ],
875 [
876 "require",
877 "make-dir"
878 ],
879 [
880 "silent",
881 true
882 ],
883 [
884 "sourceMap",
885 true
886 ]
887 ]
888 `
889
890 exports[`test/nyc-integration.js TAP recursive run does not throw > stdout 1`] = `
891
892 `
893
894 exports[`test/nyc-integration.js TAP report and check should show coverage check along with report > stderr 1`] = `
895 ERROR: Coverage for lines (50%) does not meet global threshold (100%)
896
897 `
898
899 exports[`test/nyc-integration.js TAP report and check should show coverage check along with report > stdout 1`] = `
900
901 `
902
903 exports[`test/nyc-integration.js TAP report and check should show coverage check along with report > stdout 2`] = `
904 -----------------|---------|----------|---------|---------|-------------------
905 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
906 -----------------|---------|----------|---------|---------|-------------------
907 All files | 50 | 50 | 100 | 50 |
908 half-covered.js | 50 | 50 | 100 | 50 | 6-8
909 -----------------|---------|----------|---------|---------|-------------------
910
911 `
912
913 exports[`test/nyc-integration.js TAP reports appropriate coverage information for es6 source files > stdout 1`] = `
914 sup
915 do not hit
916 ----------|---------|----------|---------|---------|-------------------
917 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
918 ----------|---------|----------|---------|---------|-------------------
919 All files | 62.5 | 100 | 40 | 62.5 |
920 es6.js | 62.5 | 100 | 40 | 62.5 | 11-17
921 ----------|---------|----------|---------|---------|-------------------
922
923 `
924
925 exports[`test/nyc-integration.js TAP reports error if input directory is missing > stderr 1`] = `
926 failed access input directory ./DIRECTORY_THAT_IS_MISSING with error:
927
928 ENOENT: no such file or directory, stat './DIRECTORY_THAT_IS_MISSING'
929
930 `
931
932 exports[`test/nyc-integration.js TAP reports error if input directory is missing > stdout 1`] = `
933
934 `
935
936 exports[`test/nyc-integration.js TAP reports error if input is not a directory > stderr 1`] = `
937 ./package.json was not a directory
938
939 `
940
941 exports[`test/nyc-integration.js TAP reports error if input is not a directory > stdout 1`] = `
942
943 `
944
945 exports[`test/nyc-integration.js TAP run-in-context provide coverage for vm.runInContext > stdout 1`] = `
946 ---------------|---------|----------|---------|---------|-------------------
947 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
948 ---------------|---------|----------|---------|---------|-------------------
949 All files | 100 | 100 | 100 | 100 |
950 in-context.js | 100 | 100 | 100 | 100 |
951 ---------------|---------|----------|---------|---------|-------------------
952
953 `
954
955 exports[`test/nyc-integration.js TAP setting instrument to "false" configures noop instrumenter > must match snapshot 1`] = `
956 [
957 [
958 "instrument",
959 false
960 ],
961 [
962 "instrumenter",
963 "./lib/instrumenters/noop"
964 ],
965 [
966 "silent",
967 true
968 ],
969 [
970 "sourceMap",
971 false
972 ]
973 ]
974 `
975
976 exports[`test/nyc-integration.js TAP skip-empty does not display 0-line files > stdout 1`] = `
977 ----------|---------|----------|---------|---------|-------------------
978 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
979 ----------|---------|----------|---------|---------|-------------------
980 ----------|---------|----------|---------|---------|-------------------
981
982 `
983
984 exports[`test/nyc-integration.js TAP skip-full does not display files with 100% statement, branch, and function coverage > stdout 1`] = `
985 -----------------|---------|----------|---------|---------|-------------------
986 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
987 -----------------|---------|----------|---------|---------|-------------------
988 All files | 62.5 | 50 | 100 | 62.5 |
989 half-covered.js | 50 | 50 | 100 | 50 | 6-8
990 -----------------|---------|----------|---------|---------|-------------------
991
992 `