-
Notifications
You must be signed in to change notification settings - Fork 30k
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 <[email protected]>
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
Signed-off-by: Matteo Collina <[email protected]>
Landed in c1051a0 |
Signed-off-by: Matteo Collina <[email protected]> PR-URL: #51056 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: James M Snell <[email protected]>
Signed-off-by: Matteo Collina <[email protected]> PR-URL: #51056 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: James M Snell <[email protected]>
No description provided.