Skip to content

Commit

Permalink
test (linux): more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Nov 25, 2024
1 parent 4ed940b commit 1317fac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
uname -a
npm install
npm run build --if-present
npm test
Expand Down
6 changes: 5 additions & 1 deletion test/cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ module.exports = (

t.is(result_no_f.code, 1, 'exit code should be 1 without -f')
t.is(result_no_f.stdout, '', 'stdout should be empty')
t.true(result_no_f.stderr.includes(`: ${filepath}: No such file or directory`), 'stderr should include "No such file or directory"')

t.true(
result_no_f.stderr.includes(`: ${filepath}: No such file or directory`), `stderr should include "No such file or directory": ${
result_no_f.stderr
}`)
})
}

0 comments on commit 1317fac

Please sign in to comment.