jest-doctor 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +32 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-doctor",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Custom Jest environment that detects async leaks between tests, enforces test isolation, and prevents flaky failures in CI.",
5
5
  "license": "MIT",
6
6
  "author": "Stephan Dum",
package/readme.md CHANGED
@@ -1,32 +1,32 @@
1
- # jest-doctor
2
-
3
- [![main](https://github.com/stephan-dum/jest-doctor/actions/workflows/main.yml/badge.svg)](https://github.com/stephan-dum/jest-doctor/actions/workflows/main.yml) [![codecov](https://codecov.io/gh/stephan-dum/jest-doctor/branch/main/graph/badge.svg)](https://codecov.io/gh/stephan-dum/jest-doctor) [![npm version](https://img.shields.io/npm/v/jest-doctor.svg)](https://www.npmjs.com/package/jest-doctor) [![License](https://img.shields.io/npm/l/jest-doctor.svg)](https://github.com/stephan-dum/jest-doctor/blob/main/LICENSE)
4
-
5
- jest-doctor is a custom Jest environment that detects [async leaks](https://stephan-dum.github.io/jest-doctor/#what-is-an-async-leak) within tests and fails flaky tests deterministically.
6
-
7
- ## Usage
8
-
9
- Out-of-the-box jest-doctor supports node and jsdom environments.
10
- Add one of the environments to your Jest config:
11
-
12
- ```js
13
- export default {
14
- testEnvironment: 'jest-doctor/env/node',
15
- // optional
16
- reporters: ['default', 'jest-doctor/reporter'],
17
- };
18
- ```
19
-
20
- Run your tests as usual and jest-doctor will report leaks such as unresolved promises or timers.
21
-
22
- Full documentation, configuration and more:
23
-
24
- 👉 [https://stephan-dum.github.io/jest-doctor/](https://stephan-dum.github.io/jest-doctor/)
25
-
26
- ---
27
-
28
- If jest-doctor helped you eliminate flaky tests, consider ⭐ starring the repo.
29
-
30
- <p align="center">
31
- <img src="https://stephan-dum.github.io/jest-doctor/assets/img/jest-doctor_mascot.png" alt="jest-doctor mascot" />
32
- </p>
1
+ # jest-doctor
2
+
3
+ [![main](https://github.com/stephan-dum/jest-doctor/actions/workflows/main.yml/badge.svg)](https://github.com/stephan-dum/jest-doctor/actions/workflows/main.yml) [![codecov](https://codecov.io/gh/stephan-dum/jest-doctor/branch/main/graph/badge.svg)](https://codecov.io/gh/stephan-dum/jest-doctor) [![npm version](https://img.shields.io/npm/v/jest-doctor.svg)](https://www.npmjs.com/package/jest-doctor) [![License](https://img.shields.io/npm/l/jest-doctor.svg)](https://github.com/stephan-dum/jest-doctor/blob/main/LICENSE)
4
+
5
+ jest-doctor is a custom Jest environment that detects [async leaks](https://stephan-dum.github.io/jest-doctor/#what-is-an-async-leak) within tests and fails flaky tests deterministically.
6
+
7
+ ## Usage
8
+
9
+ Out-of-the-box jest-doctor supports node and jsdom environments.
10
+ Add one of the environments to your Jest config:
11
+
12
+ ```js
13
+ export default {
14
+ testEnvironment: 'jest-doctor/env/node',
15
+ // optional
16
+ reporters: ['default', 'jest-doctor/reporter'],
17
+ };
18
+ ```
19
+
20
+ Run your tests as usual and jest-doctor will report leaks such as unresolved promises or timers.
21
+
22
+ Full documentation, configuration and more:
23
+
24
+ 👉 [https://stephan-dum.github.io/jest-doctor/](https://stephan-dum.github.io/jest-doctor/)
25
+
26
+ ---
27
+
28
+ If jest-doctor helped you eliminate flaky tests, consider ⭐ starring the repo.
29
+
30
+ <p align="center">
31
+ <img src="https://stephan-dum.github.io/jest-doctor/assets/img/jest-doctor_mascot.png" alt="jest-doctor mascot" />
32
+ </p>