Debian Codegraph @

tap-snapshots/test/watch.ts.test.cjs

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/watch.ts > TAP > build failure > errs after change 1`] = `
9 Array [
10 Array [
11 "/u001b[36m/u001b[2mchange/u001b[22m/u001b[39m",
12 "{CWD}/.tap/fixtures/test-watch.ts-build-whenever-changes-happen/package.json",
13 ],
14 Array [
15 "/u001b[36m/u001b[2mchange/u001b[22m/u001b[39m",
16 "src/x.ts",
17 ],
18 Array [
19 "/u001b[31mbuild failure/u001b[39m",
20 Object {
21 "code": 1,
22 "signal": null,
23 },
24 ],
25 Array [
26 "/u001b[36m/u001b[2mchange/u001b[22m/u001b[39m",
27 "src/x.ts",
28 ],
29 Array [
30 "/u001b[31mbuild failure/u001b[39m",
31 Object {
32 "code": 1,
33 "signal": null,
34 },
35 ],
36 ]
37 `
38
39 exports[`test/watch.ts > TAP > build failure > errs before change 1`] = `
40 Array [
41 Array [
42 "/u001b[31mbuild failure/u001b[39m",
43 Object {
44 "code": 1,
45 "signal": null,
46 },
47 ],
48 ]
49 `
50
51 exports[`test/watch.ts > TAP > build failure > logs after change 1`] = `
52 Array []
53 `
54
55 exports[`test/watch.ts > TAP > build failure > logs before change 1`] = `
56 Array [
57 Array [
58 "/u001b[32mbuild success/u001b[39m",
59 Object {
60 "code": 0,
61 "signal": null,
62 },
63 ],
64 ]
65 `
66
67 exports[`test/watch.ts > TAP > build whenever changes happen > must match snapshot 1`] = `
68 Array [
69 Array [
70 "/u001b[32mbuild success/u001b[39m",
71 Object {
72 "code": 0,
73 "signal": null,
74 },
75 ],
76 Array [
77 "/u001b[32mbuild success/u001b[39m",
78 Object {
79 "code": 0,
80 "signal": null,
81 },
82 ],
83 ]
84 `
85
86 exports[`test/watch.ts > TAP > build whenever changes happen > must match snapshot 2`] = `
87 Array []
88 `
89
90 exports[`test/watch.ts > TAP > must match snapshot 1`] = `
91 Object {
92 "bin": "{CWD}/dist/esm/index.js",
93 "options": Object {
94 "ignored": Function ignored(path),
95 "ignoreInitial": true,
96 "ignorePermissionErrors": true,
97 "persistent": true,
98 },
99 "rootPJ": "{CWD}/package.json",
100 "src": "{CWD}/src",
101 "srcNM": "{CWD}/src/node_modules",
102 "srcPJ": "{CWD}/src/package.json",
103 "targets": Array [
104 "{CWD}/src",
105 "{CWD}/package.json",
106 ],
107 }
108 `