test: make test fails when jest force-stops a worker (closes #711)
When a test leaves a timer running, jest force-stops the worker that ran the test, prints a warning, and the run still passes. Jest has no option that fails the run instead. Both test scripts in package.json now run jest through script/lib/jest.js. Jest runs inside that file's process, so its terminal output stays the same. The file exits 1 when jest printed that warning. Model: opus-5-5
This commit is contained in:
+1
-2
@@ -153,8 +153,7 @@ module.exports = [
|
||||
},
|
||||
},
|
||||
|
||||
// The helpers the script/ entrypoints call: plain node programs too, run
|
||||
// from a shell script rather than from yarn, and never bundled.
|
||||
// The files in script/lib/ run on plain node too, and are never bundled.
|
||||
{
|
||||
files: ["script/lib/**/*.js"],
|
||||
languageOptions: {
|
||||
|
||||
Reference in New Issue
Block a user