Skip to content

Commit bc220d7

Browse files
refactor: fix nyc
1 parent 9612bc9 commit bc220d7

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.nycrc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
2-
"all": true,
3-
"extension": [".ts", ".js"],
4-
"include": ["packages/*/src/**/*.ts", "packages/*/lib/**/*.js"],
5-
"require": ["source-map-support/register"],
6-
"reporter": ["text", "html", "lcov"],
7-
"sourceMap": true,
8-
"clean": false,
2+
"include": ["packages/**"],
3+
"reporter": ["html", "json", "cobertura"],
4+
"source-map": true,
95
"exclude-after-remap": false
106
}

test/build/config-format/typescript-cjs/typescript.test.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,15 @@ describe("typescript commonjs configuration", () => {
7676
expect(existsSync(resolve(__dirname, "dist/foo.bundle.js"))).toBeTruthy();
7777
});
7878

79-
it.only("should support typescript commonjs configuration (using `interpret`)", async () => {
79+
it("should support typescript commonjs configuration (using `interpret`)", async () => {
8080
const [major] = process.versions.node.split(".").map(Number);
8181
const { exitCode, stderr, stdout } = await run(__dirname, ["-c", "./webpack.config.ts"], {
82-
env: {
83-
WEBPACK_DEBUG_CONFIGURATION_LOADING: true,
84-
},
8582
nodeOptions: [
8683
// Disable typescript strip types for tests
8784
...(major >= 22 ? ["--no-experimental-strip-types"] : []),
8885
],
8986
});
9087

91-
console.log(stderr);
92-
console.log(stdout);
93-
9488
expect(stderr).toBeFalsy();
9589
expect(stdout).toBeTruthy();
9690
expect(exitCode).toBe(0);

0 commit comments

Comments
 (0)