Skip to content

Commit

Permalink
Disable
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 30, 2022
1 parent ac12b7e commit 87fad62
Showing 1 changed file with 2 additions and 46 deletions.
48 changes: 2 additions & 46 deletions node-swc/e2e/plugins/plugins.compat.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe("Published plugins", () => {
experimental: {
plugins: [
["@swc/plugin-jest", {}],
["swc-plugin-coverage-instrument", {}],
// ["swc-plugin-coverage-instrument", {}],
],
},
},
Expand All @@ -93,51 +93,7 @@ describe("Published plugins", () => {
);

expect(code).toMatchInlineSnapshot(`
"function cov_8828012090449151314() {
var path = \\"unknown.js\\";
var hash = \\"7618951444430927811\\";
var global = new ((function(){}).constructor)(\\"return this\\")();
var gcv = \\"__coverage__\\";
var coverageData = {
all: false,
path: \\"unknown.js\\",
statementMap: {
\\"0\\": {
start: {
line: 1,
column: 0
},
end: {
line: 1,
column: 26
}
}
},
fnMap: {},
branchMap: {},
s: {
\\"0\\": 0
},
f: {},
b: {},
_coverageSchema: \\"11020577277169172593\\",
hash: \\"7618951444430927811\\"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
cov_8828012090449151314 = function cov_8828012090449151314() {
return actualCoverage;
};
}
return actualCoverage;
}
cov_8828012090449151314();
cov_8828012090449151314().s[0]++;
console.log(\\"hello world\\");
"console.log(\\"hello world\\");
"
`);
});
Expand Down

0 comments on commit 87fad62

Please sign in to comment.