-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: set exit code in custom test runner example #51056
doc: set exit code in custom test runner example #51056
Conversation
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Review requested:
|
doc/api/test.md
Outdated
process.exitCode = 1 | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
process.exitCode = 1 | |
}) | |
process.exitCode = 1; | |
}) |
doc/api/test.md
Outdated
@@ -1164,6 +1167,9 @@ const { run } = require('node:test'); | |||
const path = require('node:path'); | |||
|
|||
run({ files: [path.resolve('./tests/test.js')] }) | |||
.on('test:fail', () => { | |||
process.exitCode = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
process.exitCode = 1 | |
process.exitCode = 1; |
doc/api/test.md
Outdated
@@ -1154,6 +1154,9 @@ import process from 'node:process'; | |||
import path from 'node:path'; | |||
|
|||
run({ files: [path.resolve('./tests/test.js')] }) | |||
.on('test:fail', () => { | |||
process.exitCode = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
process.exitCode = 1 | |
process.exitCode = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once lint passes
Landed in c1051a0 |
Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: #51056 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: #51056 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
No description provided.