Skip to content

Commit 645bb7b

Browse files
committed
chore: remove --require from test:coverage
1 parent 085569f commit 645bb7b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"pretest": "yarn build && yarn lint && yarn prepsuite",
4242
"test": "jest --reporters=default",
4343
"test:smoketests": "nyc node smoketests",
44-
"test:coverage": "nyc --no-clean --require ts-node/register jest",
44+
"test:coverage": "nyc --no-clean jest",
4545
"test:cli": "jest test --reporters=default",
4646
"test:packages": "jest packages/ --reporters=default",
4747
"test:ci": "yarn test:cli && yarn test:packages",

test/build/config-format/typescript/typescript.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const { resolve } = require("path");
44

55
describe("webpack cli", () => {
66
it("should support typescript file", async () => {
7-
const { exitCode, stderr, stdout } = await run(__dirname, ["-c", "./webpack.config.ts"]);
7+
const { exitCode, stderr, stdout } = await run(__dirname, ["-c", "./webpack.config.ts"], {
8+
nodeOptions: ["--require=ts-node/register"],
9+
});
810

911
expect(stderr).toBeFalsy();
1012
expect(stdout).toBeTruthy();

0 commit comments

Comments
 (0)