Skip to content

Commit d80be39

Browse files
authored
docs: add **Debugging ts-jest** section (#2277)
1 parent 067b653 commit d80be39

9 files changed

+33
-0
lines changed

website/docs/babel7-or-ts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: babel7-or-ts
23
title: Babel7 or TypeScript
34
---
45

website/docs/debugging.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
id: debugging
3+
title: Debugging ts-jest
4+
---
5+
6+
You can activate the debug logger by setting the environment variable `TS_JEST_LOG` before running tests.
7+
The output of the logger will be in **ts-jest.log** in current working directory.
8+
9+
The debug logger contains some useful information about how internal `ts-jest` works, including which files are processed,
10+
which Jest config or TypeScript config is used etc.
11+
12+
**Linux/MacOS**
13+
14+
```
15+
export TS_JEST_LOG=ts-jest.log
16+
```
17+
18+
**Windows**
19+
20+
```
21+
set TS_JEST_LOG=ts-jest.log
22+
```

website/docs/e2e-testing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: e2e-testing
23
title: E2E tests flow
34
---
45

website/docs/esm-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: esm-support
23
title: ESM Support
34
---
45

website/docs/installation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: installation
23
title: Installation
34
---
45

website/docs/processing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: processing
23
title: Jest flow
34
---
45

website/docs/react-native.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: react-native
23
title: Using with React Native
34
---
45

website/docs/test-helpers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: test-helpers
23
title: Test helpers
34
---
45

website/sidebars.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ module.exports = {
2222
type: 'doc',
2323
id: 'migration',
2424
},
25+
{
26+
type: 'doc',
27+
id: 'debugging',
28+
},
2529
{
2630
type: 'category',
2731
label: 'How it works',

0 commit comments

Comments
 (0)