Debian Codegraph @

tap-snapshots/test/build-commonjs.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/build-commonjs.ts > TAP > basic commonjs build > must match snapshot 1`] = `
9 Array [
10 "blah-cjs.cjs.map",
11 "blah-cjs.d.cts.map",
12 "blah.d.ts",
13 "blah.js",
14 "index.d.ts",
15 "index.d.ts.map",
16 "index.js",
17 "index.js.map",
18 "package.json",
19 ]
20 `
21
22 exports[`test/build-commonjs.ts > TAP > basic commonjs build > must match snapshot 2`] = `
23 Array [
24 Array [
25 "{NODE}",
26 Array [
27 "{CWD}/node_modules/typescript/bin/tsc",
28 "-p",
29 ".tshy/commonjs.json",
30 ],
31 Object {
32 "stdio": "inherit",
33 },
34 ],
35 Array [
36 "{NODE}",
37 Array [
38 "{CWD}/node_modules/typescript/bin/tsc",
39 "-p",
40 ".tshy/blah.json",
41 ],
42 Object {
43 "stdio": "inherit",
44 },
45 ],
46 Array [
47 "{NODE}",
48 Array [
49 "{CWD}/node_modules/typescript/bin/tsc",
50 "-p",
51 ".tshy/no-overrides.json",
52 ],
53 Object {
54 "stdio": "inherit",
55 },
56 ],
57 ]
58 `
59
60 exports[`test/build-commonjs.ts > TAP > build failure > must match snapshot 1`] = `
61 Array [
62 "blah-cjs.cjs",
63 "blah-cjs.cjs.map",
64 "blah-cjs.d.cts",
65 "blah-cjs.d.cts.map",
66 "blah.d.ts",
67 "blah.d.ts.map",
68 "blah.js",
69 "blah.js.map",
70 "index.d.ts",
71 "index.d.ts.map",
72 "index.js",
73 "index.js.map",
74 ]
75 `
76
77 exports[`test/build-commonjs.ts > TAP > build failure > must match snapshot 2`] = `
78 Array [
79 Array [
80 "{NODE}",
81 Array [
82 "{CWD}/node_modules/typescript/bin/tsc",
83 "-p",
84 ".tshy/commonjs.json",
85 ],
86 Object {
87 "stdio": "inherit",
88 },
89 ],
90 Array [
91 "{NODE}",
92 Array [
93 "{CWD}/node_modules/typescript/bin/tsc",
94 "-p",
95 ".tshy/blah.json",
96 ],
97 Object {
98 "stdio": "inherit",
99 },
100 ],
101 Array [
102 "{NODE}",
103 Array [
104 "{CWD}/node_modules/typescript/bin/tsc",
105 "-p",
106 ".tshy/no-overrides.json",
107 ],
108 Object {
109 "stdio": "inherit",
110 },
111 ],
112 Array [
113 "{NODE}",
114 Array [
115 "{CWD}/node_modules/typescript/bin/tsc",
116 "-p",
117 ".tshy/commonjs.json",
118 ],
119 Object {
120 "stdio": "inherit",
121 },
122 ],
123 ]
124 `