Skip to content

Commit baa5e3d

Browse files
authored
Apply suggestions from code review
1 parent 2dc0061 commit baa5e3d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/cli.test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"use strict";
22

3-
const childProcess = require("child_process");
4-
const path = require("path");
3+
const childProcess = require("node:child_process");
4+
const path = require("node:path");
5+
56
const cli = require("../bin/cli");
67

78
const offPatterns = [0, "off", [0], ["off"], ["off", "never"]];
@@ -80,8 +81,8 @@ test("no results", () => {
8081

8182
test("empty config", (done) => {
8283
childProcess.exec(
83-
`node ${path.join(process.cwd(), "bin/cli.js")} index.js`,
84-
{ cwd: path.join(__dirname, "fixtures/empty-config") },
84+
`node ${path.resolve("bin/cli.js")} index.js`,
85+
{ cwd: path.resolve(__dirname, "fixtures/empty-config") },
8586
done
8687
);
8788
});

0 commit comments

Comments
 (0)