Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a048c5a4d0 | |||
| 5563154fd9 |
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-03-23 - 3.5.1 - fix(runtime)
|
||||||
|
handle expected exitCode rejection after terminating timed out test processes
|
||||||
|
|
||||||
|
- swallow the child process exitCode rejection triggered by timeout termination
|
||||||
|
- reduce unhandled rejection noise when test files exceed the configured timeout
|
||||||
|
|
||||||
## 2026-03-19 - 3.5.0 - feat(tstest)
|
## 2026-03-19 - 3.5.0 - feat(tstest)
|
||||||
add support for package.json before scripts during test execution
|
add support for package.json before scripts during test execution
|
||||||
|
|
||||||
|
|||||||
@@ -9,5 +9,5 @@
|
|||||||
"target": "ES2022"
|
"target": "ES2022"
|
||||||
},
|
},
|
||||||
"nodeModulesDir": true,
|
"nodeModulesDir": true,
|
||||||
"version": "3.5.0"
|
"version": "3.5.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/tstest",
|
"name": "@git.zone/tstest",
|
||||||
"version": "3.5.0",
|
"version": "3.5.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.",
|
"description": "A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tstest',
|
name: '@git.zone/tstest',
|
||||||
version: '3.5.0',
|
version: '3.5.1',
|
||||||
description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.'
|
description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,6 +184,8 @@ import '${absoluteTestFile.replace(/\\/g, '/')}';
|
|||||||
timeoutId = setTimeout(async () => {
|
timeoutId = setTimeout(async () => {
|
||||||
// Use tsrun's terminate() to gracefully kill the process
|
// Use tsrun's terminate() to gracefully kill the process
|
||||||
await tsrunProcess.terminate();
|
await tsrunProcess.terminate();
|
||||||
|
// Swallow the expected rejection from the killed child process
|
||||||
|
tsrunProcess.exitCode.catch(() => {});
|
||||||
reject(new Error(`Test file timed out after ${this.timeoutSeconds} seconds`));
|
reject(new Error(`Test file timed out after ${this.timeoutSeconds} seconds`));
|
||||||
}, timeoutMs);
|
}, timeoutMs);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user