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.
- package/package.json +1 -1
- package/readme.md +32 -32
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
# jest-doctor
|
|
2
|
-
|
|
3
|
-
[](https://github.com/stephan-dum/jest-doctor/actions/workflows/main.yml) [](https://codecov.io/gh/stephan-dum/jest-doctor) [](https://www.npmjs.com/package/jest-doctor) [](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
|
+
[](https://github.com/stephan-dum/jest-doctor/actions/workflows/main.yml) [](https://codecov.io/gh/stephan-dum/jest-doctor) [](https://www.npmjs.com/package/jest-doctor) [](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>
|