Skip to content

Commit 20f854d

Browse files
committed
update snapshot
1 parent bd87091 commit 20f854d

File tree

1 file changed

+124
-2
lines changed

1 file changed

+124
-2
lines changed

packages/jest-runtime/src/__tests__/__snapshots__/script_transformer.test.js.snap

Lines changed: 124 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,134 @@ Object {
88
`;
99

1010
exports[`ScriptTransformer transforms a file properly 1`] = `
11-
"({\\"Object.<anonymous>\\":function(module,exports,require,__dirname,__filename,global,jest){/* istanbul ignore next */var cov_25u22311x4 = function () {var path = \\"/fruits/banana.js\\",hash = \\"04636d4ae73b4b3e24bf6fba39e08c946fd0afb5\\",Function = function () {}.constructor,global = new Function('return this')(),gcv = \\"__coverage__\\",coverageData = { path: \\"/fruits/banana.js\\", statementMap: { \\"0\\": { start: { line: 1, column: 0 }, end: { line: 1, column: 26 } } }, fnMap: {}, branchMap: {}, s: { \\"0\\": 0 }, f: {}, b: {}, _coverageSchema: \\"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c\\" },coverage = global[gcv] || (global[gcv] = {});if (coverage[path] && coverage[path].hash === hash) {return coverage[path];}coverageData.hash = hash;return coverage[path] = coverageData;}();cov_25u22311x4.s[0]++;module.exports = \\"banana\\";
11+
"({\\"Object.<anonymous>\\":function(module,exports,require,__dirname,__filename,global,jest){/* istanbul ignore next */var cov_25u22311x4 = function () {
12+
var path = \\"/fruits/banana.js\\",
13+
hash = \\"04636d4ae73b4b3e24bf6fba39e08c946fd0afb5\\",
14+
Function = function () {}.constructor,
15+
global = new Function('return this')(),
16+
gcv = \\"__coverage__\\",
17+
coverageData = {
18+
path: \\"/fruits/banana.js\\",
19+
statementMap: {
20+
\\"0\\": {
21+
start: {
22+
line: 1,
23+
column: 0
24+
},
25+
end: {
26+
line: 1,
27+
column: 26
28+
}
29+
}
30+
},
31+
fnMap: {},
32+
branchMap: {},
33+
s: {
34+
\\"0\\": 0
35+
},
36+
f: {},
37+
b: {},
38+
_coverageSchema: \\"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c\\"
39+
},
40+
coverage = global[gcv] || (global[gcv] = {});
41+
42+
if (coverage[path] && coverage[path].hash === hash) {
43+
return coverage[path];
44+
}
45+
46+
coverageData.hash = hash;
47+
return coverage[path] = coverageData;
48+
}();
49+
50+
cov_25u22311x4.s[0]++;
51+
module.exports = \\"banana\\";
1252
}});"
1353
`;
1454

1555
exports[`ScriptTransformer transforms a file properly 2`] = `
16-
"({\\"Object.<anonymous>\\":function(module,exports,require,__dirname,__filename,global,jest){/* istanbul ignore next */var cov_23yvu8etmu = function () {var path = \\"/fruits/kiwi.js\\",hash = \\"58d742d8c615e16eb5dffec9322e6ed1babde8f3\\",Function = function () {}.constructor,global = new Function('return this')(),gcv = \\"__coverage__\\",coverageData = { path: \\"/fruits/kiwi.js\\", statementMap: { \\"0\\": { start: { line: 1, column: 0 }, end: { line: 1, column: 30 } }, \\"1\\": { start: { line: 1, column: 23 }, end: { line: 1, column: 29 } } }, fnMap: { \\"0\\": { name: \\"(anonymous_0)\\", decl: { start: { line: 1, column: 17 }, end: { line: 1, column: 18 } }, loc: { start: { line: 1, column: 23 }, end: { line: 1, column: 29 } }, line: 1 } }, branchMap: {}, s: { \\"0\\": 0, \\"1\\": 0 }, f: { \\"0\\": 0 }, b: {}, _coverageSchema: \\"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c\\" },coverage = global[gcv] || (global[gcv] = {});if (coverage[path] && coverage[path].hash === hash) {return coverage[path];}coverageData.hash = hash;return coverage[path] = coverageData;}();cov_23yvu8etmu.s[0]++;module.exports = () => {/* istanbul ignore next */cov_23yvu8etmu.f[0]++;cov_23yvu8etmu.s[1]++;return \\"kiwi\\";};
56+
"({\\"Object.<anonymous>\\":function(module,exports,require,__dirname,__filename,global,jest){/* istanbul ignore next */var cov_23yvu8etmu = function () {
57+
var path = \\"/fruits/kiwi.js\\",
58+
hash = \\"58d742d8c615e16eb5dffec9322e6ed1babde8f3\\",
59+
Function = function () {}.constructor,
60+
global = new Function('return this')(),
61+
gcv = \\"__coverage__\\",
62+
coverageData = {
63+
path: \\"/fruits/kiwi.js\\",
64+
statementMap: {
65+
\\"0\\": {
66+
start: {
67+
line: 1,
68+
column: 0
69+
},
70+
end: {
71+
line: 1,
72+
column: 30
73+
}
74+
},
75+
\\"1\\": {
76+
start: {
77+
line: 1,
78+
column: 23
79+
},
80+
end: {
81+
line: 1,
82+
column: 29
83+
}
84+
}
85+
},
86+
fnMap: {
87+
\\"0\\": {
88+
name: \\"(anonymous_0)\\",
89+
decl: {
90+
start: {
91+
line: 1,
92+
column: 17
93+
},
94+
end: {
95+
line: 1,
96+
column: 18
97+
}
98+
},
99+
loc: {
100+
start: {
101+
line: 1,
102+
column: 23
103+
},
104+
end: {
105+
line: 1,
106+
column: 29
107+
}
108+
},
109+
line: 1
110+
}
111+
},
112+
branchMap: {},
113+
s: {
114+
\\"0\\": 0,
115+
\\"1\\": 0
116+
},
117+
f: {
118+
\\"0\\": 0
119+
},
120+
b: {},
121+
_coverageSchema: \\"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c\\"
122+
},
123+
coverage = global[gcv] || (global[gcv] = {});
124+
125+
if (coverage[path] && coverage[path].hash === hash) {
126+
return coverage[path];
127+
}
128+
129+
coverageData.hash = hash;
130+
return coverage[path] = coverageData;
131+
}();
132+
133+
cov_23yvu8etmu.s[0]++;
134+
module.exports = () => {
135+
/* istanbul ignore next */cov_23yvu8etmu.f[0]++;
136+
cov_23yvu8etmu.s[1]++;
137+
return \\"kiwi\\";
138+
};
17139
}});"
18140
`;
19141

0 commit comments

Comments
 (0)