Skip to content

Commit 0797974

Browse files
committed
test: update smoke test script
1 parent c0b6449 commit 0797974

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424
cache: "npm"
2525
- run: npm ci
26-
# - run: npm run build --if-present
26+
- run: npm run build
27+
- run: npm link ./
2728
- run: npm test

test/index.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
const { exec } = require("child_process");
2-
const path = require("path");
32

43
test("smoke test for command-line tool", (done) => {
5-
const scriptPath = path.join(__dirname, "../bin/cli.js");
6-
exec(`node ${scriptPath} -l 10 -d ./test`, (error, stdout, stderr) => {
4+
exec(`locc -l 10 -d ./test`, (error, stdout, stderr) => {
75
expect(error).toBeNull();
86
expect(stderr).toBe("");
97
expect(stdout).toContain("Scan");

0 commit comments

Comments
 (0)