-
Notifications
You must be signed in to change notification settings - Fork 59
/
basic.ts.snap
127 lines (90 loc) 路 3.01 KB
/
basic.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`basic: valid-package.cjs.dev.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var index = "something";
exports.default = index;
"
`;
exports[`basic: valid-package.cjs.js 1`] = `
"'use strict';
if (process.env.NODE_ENV === "production") {
module.exports = require("./valid-package.cjs.prod.js");
} else {
module.exports = require("./valid-package.cjs.dev.js");
}
"
`;
exports[`basic: valid-package.cjs.prod.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var index = "something";
exports.default = index;
"
`;
exports[`basic: valid-package.esm.js 1`] = `
"var index = "something";
export { index as default };
"
`;
exports[`basic: valid-package.umd.min.js 1`] = `
"!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).validPackage=n()}(this,(function(){"use strict";return"something"}));
//# sourceMappingURL=valid-package.umd.min.js.map
"
`;
exports[`basic: valid-package.umd.min.js.map 1`] = `"{"version":3,"file":"valid-package.umd.min.js","sources":["../src/index.js"],"sourcesContent":["export default \\"something\\";\\n"],"names":[],"mappings":"mPAAe"}"`;
exports[`typescript thing: declarations/src/index.d.ts 1`] = `
"export declare const thing: "wow";
"
`;
exports[`typescript thing: declarations/src/other.d.ts 1`] = `
"export declare const thing: () => "wow";
"
`;
exports[`typescript thing: declarations/src/thing.d.ts 1`] = `
"export declare const makeThing: () => "wow";
"
`;
exports[`typescript thing: weird-typescript-thing.cjs.d.ts 1`] = `
"export * from "./declarations/src/index";
//# sourceMappingURL=weird-typescript-thing.cjs.d.ts.map
"
`;
exports[`typescript thing: weird-typescript-thing.cjs.d.ts.map 1`] = `
"{"version":3,"file":"weird-typescript-thing.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
"
`;
exports[`typescript thing: weird-typescript-thing.cjs.dev.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const thing$1 = () => "wow";
const makeThing = () => thing$1();
const thing = makeThing();
exports.thing = thing;
"
`;
exports[`typescript thing: weird-typescript-thing.cjs.js 1`] = `
"'use strict';
if (process.env.NODE_ENV === "production") {
module.exports = require("./weird-typescript-thing.cjs.prod.js");
} else {
module.exports = require("./weird-typescript-thing.cjs.dev.js");
}
"
`;
exports[`typescript thing: weird-typescript-thing.cjs.prod.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const thing$1 = () => "wow";
const makeThing = () => thing$1();
const thing = makeThing();
exports.thing = thing;
"
`;
exports[`typescript thing: weird-typescript-thing.esm.js 1`] = `
"const thing$1 = () => "wow";
const makeThing = () => thing$1();
const thing = makeThing();
export { thing };
"
`;