Skip to content

Commit

Permalink
docs: add **Debugging ts-jest** section (#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Jan 15, 2021
1 parent 067b653 commit d80be39
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions website/docs/babel7-or-ts.md
@@ -1,4 +1,5 @@
---
id: babel7-or-ts
title: Babel7 or TypeScript
---

Expand Down
22 changes: 22 additions & 0 deletions website/docs/debugging.md
@@ -0,0 +1,22 @@
---
id: debugging
title: Debugging ts-jest
---

You can activate the debug logger by setting the environment variable `TS_JEST_LOG` before running tests.
The output of the logger will be in **ts-jest.log** in current working directory.

The debug logger contains some useful information about how internal `ts-jest` works, including which files are processed,
which Jest config or TypeScript config is used etc.

**Linux/MacOS**

```
export TS_JEST_LOG=ts-jest.log
```

**Windows**

```
set TS_JEST_LOG=ts-jest.log
```
1 change: 1 addition & 0 deletions website/docs/e2e-testing.md
@@ -1,4 +1,5 @@
---
id: e2e-testing
title: E2E tests flow
---

Expand Down
1 change: 1 addition & 0 deletions website/docs/esm-support.md
@@ -1,4 +1,5 @@
---
id: esm-support
title: ESM Support
---

Expand Down
1 change: 1 addition & 0 deletions website/docs/installation.md
@@ -1,4 +1,5 @@
---
id: installation
title: Installation
---

Expand Down
1 change: 1 addition & 0 deletions website/docs/processing.md
@@ -1,4 +1,5 @@
---
id: processing
title: Jest flow
---

Expand Down
1 change: 1 addition & 0 deletions website/docs/react-native.md
@@ -1,4 +1,5 @@
---
id: react-native
title: Using with React Native
---

Expand Down
1 change: 1 addition & 0 deletions website/docs/test-helpers.md
@@ -1,4 +1,5 @@
---
id: test-helpers
title: Test helpers
---

Expand Down
4 changes: 4 additions & 0 deletions website/sidebars.js
Expand Up @@ -22,6 +22,10 @@ module.exports = {
type: 'doc',
id: 'migration',
},
{
type: 'doc',
id: 'debugging',
},
{
type: 'category',
label: 'How it works',
Expand Down

0 comments on commit d80be39

Please sign in to comment.