jest-doctor 2.0.9 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,7 +104,7 @@ const schema = zod
104
104
  })
105
105
  .default(DEFAULTS.report),
106
106
  verbose: zod.boolean().default(false),
107
- delayThreshold: zod.int().gte(0).default(0),
107
+ delayThreshold: zod.int().gte(0).or(zod.literal(Infinity)).default(0),
108
108
  timerIsolation: zod
109
109
  .enum(['afterEach', 'immediate', 'beforeEach'])
110
110
  .default('afterEach'),
package/package.json CHANGED
@@ -1,97 +1,97 @@
1
- {
2
- "name": "jest-doctor",
3
- "version": "2.0.9",
4
- "description": "Custom Jest environment that detects async leaks between tests, enforces test isolation, and prevents flaky failures in CI.",
5
- "license": "MIT",
6
- "author": "Stephan Dum",
7
- "type": "commonjs",
8
- "homepage": "https://stephan-dum.github.io/jest-doctor/",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/stephan-dum/jest-doctor.git",
12
- "directory": "packages/jest-doctor"
13
- },
14
- "exports": {
15
- "./package.json": "./package.json",
16
- "./createEnvMixin": "./dist/createEnvMixin.js",
17
- "./env/node": "./dist/env/node.js",
18
- "./env/jsdom": "./dist/env/jsdom.js",
19
- "./reporter": "./dist/reporter.js"
20
- },
21
- "files": [
22
- "dist"
23
- ],
24
- "keywords": [
25
- "jest",
26
- "jest-doctor",
27
- "leak detection",
28
- "open handles",
29
- "issue detection",
30
- "testing",
31
- "jest environment",
32
- "test hygiene",
33
- "flaky-tests",
34
- "test-isolation",
35
- "async-leaks",
36
- "developer-tools",
37
- "ci",
38
- "test diagnostics"
39
- ],
40
- "types": "./dist/types.d.ts",
41
- "devDependencies": {
42
- "@dev/eslint": "1.0.0",
43
- "@dev/tsconfig": "1.0.0",
44
- "@jest/reporters": "30.2.0",
45
- "@swc/core": "^1.15.11",
46
- "@swc/jest": "^0.2.39",
47
- "@testing-library/dom": "^10.4.1",
48
- "@testing-library/jest-dom": "^6.9.1",
49
- "@testing-library/react": "^16.3.2",
50
- "@types/cross-spawn": "^6.0.6",
51
- "@types/jest": "^30.0.0",
52
- "@types/node": "^25.3.0",
53
- "@types/react": "^19.2.14",
54
- "@types/react-dom": "^19.2.3",
55
- "c8": "^10.1.3",
56
- "cross-spawn": "^7.0.6",
57
- "eslint": "^10.0.0",
58
- "jest": "30.2.0",
59
- "jest-environment-jsdom": "^30.2.0",
60
- "jest-environment-node": "^30.2.0",
61
- "memfs": "^4.56.10",
62
- "nyc": "^17.1.0",
63
- "react": "^19.2.4",
64
- "react-dom": "^19.2.4",
65
- "shx": "^0.4.0",
66
- "ts-jest": "^29.4.6",
67
- "typescript": "5.9.3"
68
- },
69
- "peerDependencies": {
70
- "jest": ">=28",
71
- "jest-environment-jsdom": "*",
72
- "jest-environment-node": "*"
73
- },
74
- "peerDependenciesMeta": {
75
- "jest-environment-jsdom": {
76
- "optional": true
77
- },
78
- "jest-environment-node": {
79
- "optional": true
80
- }
81
- },
82
- "dependencies": {
83
- "chalk": "4.1.2",
84
- "zod": "^4.3.6"
85
- },
86
- "scripts": {
87
- "prepare:publish": "shx rm -fR dist && yarn build && npm login && npm publish",
88
- "typecheck": "tsc",
89
- "build": "tsc --project tsconfig.build.json",
90
- "dev": "yarn typecheck --watch & yarn build --watch",
91
- "lint": "eslint .",
92
- "test:unit": "jest --coverage",
93
- "test:matrix": "node ./e2e/runMatrix.mjs",
94
- "test": "yarn matrix && yarn test:unit && yarn coverage:merge",
95
- "coverage:merge": "nyc report"
96
- }
97
- }
1
+ {
2
+ "name": "jest-doctor",
3
+ "version": "2.1.0",
4
+ "description": "Custom Jest environment that detects async leaks between tests, enforces test isolation, and prevents flaky failures in CI.",
5
+ "license": "MIT",
6
+ "author": "Stephan Dum",
7
+ "type": "commonjs",
8
+ "homepage": "https://stephan-dum.github.io/jest-doctor/",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/stephan-dum/jest-doctor.git",
12
+ "directory": "packages/jest-doctor"
13
+ },
14
+ "exports": {
15
+ "./package.json": "./package.json",
16
+ "./createEnvMixin": "./dist/createEnvMixin.js",
17
+ "./env/node": "./dist/env/node.js",
18
+ "./env/jsdom": "./dist/env/jsdom.js",
19
+ "./reporter": "./dist/reporter.js"
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "keywords": [
25
+ "jest",
26
+ "jest-doctor",
27
+ "leak detection",
28
+ "open handles",
29
+ "issue detection",
30
+ "testing",
31
+ "jest environment",
32
+ "test hygiene",
33
+ "flaky-tests",
34
+ "test-isolation",
35
+ "async-leaks",
36
+ "developer-tools",
37
+ "ci",
38
+ "test diagnostics"
39
+ ],
40
+ "types": "./dist/types.d.ts",
41
+ "devDependencies": {
42
+ "@dev/eslint": "1.0.0",
43
+ "@dev/tsconfig": "1.0.0",
44
+ "@jest/reporters": "30.3.0",
45
+ "@swc/core": "^1.15.21",
46
+ "@swc/jest": "^0.2.39",
47
+ "@testing-library/dom": "^10.4.1",
48
+ "@testing-library/jest-dom": "^6.9.1",
49
+ "@testing-library/react": "^16.3.2",
50
+ "@types/cross-spawn": "^6.0.6",
51
+ "@types/jest": "^30.0.0",
52
+ "@types/node": "^25.5.0",
53
+ "@types/react": "^19.2.14",
54
+ "@types/react-dom": "^19.2.3",
55
+ "c8": "^11.0.0",
56
+ "cross-spawn": "^7.0.6",
57
+ "eslint": "^10.0.3",
58
+ "jest": "30.3.0",
59
+ "jest-environment-jsdom": "^30.3.0",
60
+ "jest-environment-node": "^30.3.0",
61
+ "memfs": "^4.57.1",
62
+ "nyc": "^18.0.0",
63
+ "react": "^19.2.4",
64
+ "react-dom": "^19.2.4",
65
+ "shx": "^0.4.0",
66
+ "ts-jest": "^29.4.6",
67
+ "typescript": "5.9.3"
68
+ },
69
+ "peerDependencies": {
70
+ "jest": ">=28",
71
+ "jest-environment-jsdom": "*",
72
+ "jest-environment-node": "*"
73
+ },
74
+ "peerDependenciesMeta": {
75
+ "jest-environment-jsdom": {
76
+ "optional": true
77
+ },
78
+ "jest-environment-node": {
79
+ "optional": true
80
+ }
81
+ },
82
+ "dependencies": {
83
+ "chalk": "4.1.2",
84
+ "zod": "^4.3.6"
85
+ },
86
+ "scripts": {
87
+ "prepare:publish": "shx rm -fR dist && yarn build && npm publish",
88
+ "typecheck": "tsc",
89
+ "build": "tsc --project tsconfig.build.json",
90
+ "dev": "yarn typecheck --watch & yarn build --watch",
91
+ "lint": "eslint .",
92
+ "test:unit": "jest --coverage",
93
+ "test:matrix": "node ./e2e/runMatrix.mjs",
94
+ "test": "yarn matrix && yarn test:unit && yarn coverage:merge",
95
+ "coverage:merge": "nyc report"
96
+ }
97
+ }