Skip to content

Commit

Permalink
docs(devs-infra): fix JestConfigWithTsJest type import (#3812)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Sep 14, 2022
1 parent e38c0e9 commit 548910e
Show file tree
Hide file tree
Showing 24 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion website/docs/getting-started/options.md
Expand Up @@ -24,7 +24,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
4 changes: 2 additions & 2 deletions website/docs/getting-started/options/astTransformers.md
Expand Up @@ -34,7 +34,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -96,7 +96,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
8 changes: 4 additions & 4 deletions website/docs/getting-started/options/babelConfig.md
Expand Up @@ -30,7 +30,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -84,7 +84,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -135,7 +135,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'
import babelConfig from './babelrc.test.js'

const jestConfig: JestConfigWithTsJest = {
Expand Down Expand Up @@ -176,7 +176,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
2 changes: 1 addition & 1 deletion website/docs/getting-started/options/compiler.md
Expand Up @@ -27,7 +27,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
8 changes: 4 additions & 4 deletions website/docs/getting-started/options/diagnostics.md
Expand Up @@ -47,7 +47,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -104,7 +104,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -164,7 +164,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -228,7 +228,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
Expand Up @@ -34,7 +34,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'
import tsJestPresets from 'ts-jest/presets'

const jestConfig: JestConfigWithTsJest = {
Expand Down
6 changes: 3 additions & 3 deletions website/docs/getting-started/options/tsconfig.md
Expand Up @@ -30,7 +30,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -86,7 +86,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -143,7 +143,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
2 changes: 1 addition & 1 deletion website/docs/getting-started/options/useESM.md
Expand Up @@ -24,7 +24,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
4 changes: 2 additions & 2 deletions website/docs/getting-started/paths-mapping.md
Expand Up @@ -40,7 +40,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -85,7 +85,7 @@ import { pathsToModuleNameMapper } from 'ts-jest'
// In the following statement, replace `./tsconfig` with the path to your `tsconfig` file
// which contains the path mapping (ie the `compilerOptions.paths` option):
import { compilerOptions } from './tsconfig'
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
4 changes: 2 additions & 2 deletions website/docs/getting-started/presets.md
Expand Up @@ -44,7 +44,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -94,7 +94,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

import { defaults as tsjPreset } from 'ts-jest/presets'
// import { defaultsESM as tsjPreset } from 'ts-jest/presets';
Expand Down
4 changes: 2 additions & 2 deletions website/docs/guides/esm-support.md
Expand Up @@ -38,7 +38,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -107,7 +107,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
4 changes: 2 additions & 2 deletions website/docs/guides/react-native.md
Expand Up @@ -19,7 +19,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
presets: ['module:metro-react-native-babel-preset'],
Expand Down Expand Up @@ -67,7 +67,7 @@ module.exports = {

```ts tab
import { defaults as tsjPreset } from 'ts-jest/presets'
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
preset: 'react-native',
Expand Down
Expand Up @@ -24,7 +24,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
Expand Up @@ -34,7 +34,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -96,7 +96,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
Expand Up @@ -30,7 +30,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -84,7 +84,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -135,7 +135,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'
import babelConfig from './babelrc.test.js'

const jestConfig: JestConfigWithTsJest = {
Expand Down Expand Up @@ -176,7 +176,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
Expand Up @@ -27,7 +27,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
Expand Up @@ -47,7 +47,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -104,7 +104,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -164,7 +164,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -228,7 +228,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
Expand Up @@ -34,7 +34,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'
import tsJestPresets from 'ts-jest/presets'

const jestConfig: JestConfigWithTsJest = {
Expand Down
Expand Up @@ -30,7 +30,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -86,7 +86,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -143,7 +143,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
Expand Up @@ -24,7 +24,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down
Expand Up @@ -40,7 +40,7 @@ module.exports = {
```

```ts tab
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down Expand Up @@ -85,7 +85,7 @@ import { pathsToModuleNameMapper } from 'ts-jest'
// In the following statement, replace `./tsconfig` with the path to your `tsconfig` file
// which contains the path mapping (ie the `compilerOptions.paths` option):
import { compilerOptions } from './tsconfig'
import type { JestConfigWithTsJest } from './types'
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
Expand Down

0 comments on commit 548910e

Please sign in to comment.