From 548910e64dcc949edd85e1eb6ad76f3ca005fbd6 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Wed, 14 Sep 2022 17:48:04 +0300 Subject: [PATCH] docs(devs-infra): fix `JestConfigWithTsJest` type import (#3812) --- website/docs/getting-started/options.md | 2 +- website/docs/getting-started/options/astTransformers.md | 4 ++-- website/docs/getting-started/options/babelConfig.md | 8 ++++---- website/docs/getting-started/options/compiler.md | 2 +- website/docs/getting-started/options/diagnostics.md | 8 ++++---- .../getting-started/options/stringifyContentPathRegex.md | 2 +- website/docs/getting-started/options/tsconfig.md | 6 +++--- website/docs/getting-started/options/useESM.md | 2 +- website/docs/getting-started/paths-mapping.md | 4 ++-- website/docs/getting-started/presets.md | 4 ++-- website/docs/guides/esm-support.md | 4 ++-- website/docs/guides/react-native.md | 4 ++-- .../version-29.0/getting-started/options.md | 2 +- .../getting-started/options/astTransformers.md | 4 ++-- .../version-29.0/getting-started/options/babelConfig.md | 8 ++++---- .../version-29.0/getting-started/options/compiler.md | 2 +- .../version-29.0/getting-started/options/diagnostics.md | 8 ++++---- .../getting-started/options/stringifyContentPathRegex.md | 2 +- .../version-29.0/getting-started/options/tsconfig.md | 6 +++--- .../version-29.0/getting-started/options/useESM.md | 2 +- .../version-29.0/getting-started/paths-mapping.md | 4 ++-- .../version-29.0/getting-started/presets.md | 4 ++-- website/versioned_docs/version-29.0/guides/esm-support.md | 4 ++-- .../versioned_docs/version-29.0/guides/react-native.md | 4 ++-- 24 files changed, 50 insertions(+), 50 deletions(-) diff --git a/website/docs/getting-started/options.md b/website/docs/getting-started/options.md index 7c32104afd..91a383b562 100644 --- a/website/docs/getting-started/options.md +++ b/website/docs/getting-started/options.md @@ -24,7 +24,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/docs/getting-started/options/astTransformers.md b/website/docs/getting-started/options/astTransformers.md index d42801457e..997d15267a 100644 --- a/website/docs/getting-started/options/astTransformers.md +++ b/website/docs/getting-started/options/astTransformers.md @@ -34,7 +34,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -96,7 +96,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/docs/getting-started/options/babelConfig.md b/website/docs/getting-started/options/babelConfig.md index 4cd781ecab..04c56e676b 100644 --- a/website/docs/getting-started/options/babelConfig.md +++ b/website/docs/getting-started/options/babelConfig.md @@ -30,7 +30,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -84,7 +84,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -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 = { @@ -176,7 +176,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/docs/getting-started/options/compiler.md b/website/docs/getting-started/options/compiler.md index 85752446cc..5baa413c5b 100644 --- a/website/docs/getting-started/options/compiler.md +++ b/website/docs/getting-started/options/compiler.md @@ -27,7 +27,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/docs/getting-started/options/diagnostics.md b/website/docs/getting-started/options/diagnostics.md index a46cdae138..a6495a3bf4 100644 --- a/website/docs/getting-started/options/diagnostics.md +++ b/website/docs/getting-started/options/diagnostics.md @@ -47,7 +47,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -104,7 +104,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -164,7 +164,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -228,7 +228,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/docs/getting-started/options/stringifyContentPathRegex.md b/website/docs/getting-started/options/stringifyContentPathRegex.md index cd4bbe8053..5e883b9f6f 100644 --- a/website/docs/getting-started/options/stringifyContentPathRegex.md +++ b/website/docs/getting-started/options/stringifyContentPathRegex.md @@ -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 = { diff --git a/website/docs/getting-started/options/tsconfig.md b/website/docs/getting-started/options/tsconfig.md index 9ff0caff42..54e660f3a2 100644 --- a/website/docs/getting-started/options/tsconfig.md +++ b/website/docs/getting-started/options/tsconfig.md @@ -30,7 +30,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -86,7 +86,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -143,7 +143,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/docs/getting-started/options/useESM.md b/website/docs/getting-started/options/useESM.md index 3f61df9711..db2526fd11 100644 --- a/website/docs/getting-started/options/useESM.md +++ b/website/docs/getting-started/options/useESM.md @@ -24,7 +24,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/docs/getting-started/paths-mapping.md b/website/docs/getting-started/paths-mapping.md index 579bfa8b40..3f37fa7e7a 100644 --- a/website/docs/getting-started/paths-mapping.md +++ b/website/docs/getting-started/paths-mapping.md @@ -40,7 +40,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -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 = { // [...] diff --git a/website/docs/getting-started/presets.md b/website/docs/getting-started/presets.md index 53d347cc39..ab8151a7f0 100644 --- a/website/docs/getting-started/presets.md +++ b/website/docs/getting-started/presets.md @@ -44,7 +44,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -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'; diff --git a/website/docs/guides/esm-support.md b/website/docs/guides/esm-support.md index 5e78bfa750..a89abfd462 100644 --- a/website/docs/guides/esm-support.md +++ b/website/docs/guides/esm-support.md @@ -38,7 +38,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -107,7 +107,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/docs/guides/react-native.md b/website/docs/guides/react-native.md index 3e238797ea..ae1212ac5b 100644 --- a/website/docs/guides/react-native.md +++ b/website/docs/guides/react-native.md @@ -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'], @@ -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', diff --git a/website/versioned_docs/version-29.0/getting-started/options.md b/website/versioned_docs/version-29.0/getting-started/options.md index 7c32104afd..91a383b562 100644 --- a/website/versioned_docs/version-29.0/getting-started/options.md +++ b/website/versioned_docs/version-29.0/getting-started/options.md @@ -24,7 +24,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/versioned_docs/version-29.0/getting-started/options/astTransformers.md b/website/versioned_docs/version-29.0/getting-started/options/astTransformers.md index d42801457e..997d15267a 100644 --- a/website/versioned_docs/version-29.0/getting-started/options/astTransformers.md +++ b/website/versioned_docs/version-29.0/getting-started/options/astTransformers.md @@ -34,7 +34,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -96,7 +96,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/versioned_docs/version-29.0/getting-started/options/babelConfig.md b/website/versioned_docs/version-29.0/getting-started/options/babelConfig.md index 4cd781ecab..04c56e676b 100644 --- a/website/versioned_docs/version-29.0/getting-started/options/babelConfig.md +++ b/website/versioned_docs/version-29.0/getting-started/options/babelConfig.md @@ -30,7 +30,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -84,7 +84,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -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 = { @@ -176,7 +176,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/versioned_docs/version-29.0/getting-started/options/compiler.md b/website/versioned_docs/version-29.0/getting-started/options/compiler.md index 85752446cc..5baa413c5b 100644 --- a/website/versioned_docs/version-29.0/getting-started/options/compiler.md +++ b/website/versioned_docs/version-29.0/getting-started/options/compiler.md @@ -27,7 +27,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/versioned_docs/version-29.0/getting-started/options/diagnostics.md b/website/versioned_docs/version-29.0/getting-started/options/diagnostics.md index a46cdae138..a6495a3bf4 100644 --- a/website/versioned_docs/version-29.0/getting-started/options/diagnostics.md +++ b/website/versioned_docs/version-29.0/getting-started/options/diagnostics.md @@ -47,7 +47,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -104,7 +104,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -164,7 +164,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -228,7 +228,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/versioned_docs/version-29.0/getting-started/options/stringifyContentPathRegex.md b/website/versioned_docs/version-29.0/getting-started/options/stringifyContentPathRegex.md index cd4bbe8053..5e883b9f6f 100644 --- a/website/versioned_docs/version-29.0/getting-started/options/stringifyContentPathRegex.md +++ b/website/versioned_docs/version-29.0/getting-started/options/stringifyContentPathRegex.md @@ -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 = { diff --git a/website/versioned_docs/version-29.0/getting-started/options/tsconfig.md b/website/versioned_docs/version-29.0/getting-started/options/tsconfig.md index 9ff0caff42..54e660f3a2 100644 --- a/website/versioned_docs/version-29.0/getting-started/options/tsconfig.md +++ b/website/versioned_docs/version-29.0/getting-started/options/tsconfig.md @@ -30,7 +30,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -86,7 +86,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -143,7 +143,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/versioned_docs/version-29.0/getting-started/options/useESM.md b/website/versioned_docs/version-29.0/getting-started/options/useESM.md index 3f61df9711..db2526fd11 100644 --- a/website/versioned_docs/version-29.0/getting-started/options/useESM.md +++ b/website/versioned_docs/version-29.0/getting-started/options/useESM.md @@ -24,7 +24,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/versioned_docs/version-29.0/getting-started/paths-mapping.md b/website/versioned_docs/version-29.0/getting-started/paths-mapping.md index 579bfa8b40..3f37fa7e7a 100644 --- a/website/versioned_docs/version-29.0/getting-started/paths-mapping.md +++ b/website/versioned_docs/version-29.0/getting-started/paths-mapping.md @@ -40,7 +40,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -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 = { // [...] diff --git a/website/versioned_docs/version-29.0/getting-started/presets.md b/website/versioned_docs/version-29.0/getting-started/presets.md index 53d347cc39..ab8151a7f0 100644 --- a/website/versioned_docs/version-29.0/getting-started/presets.md +++ b/website/versioned_docs/version-29.0/getting-started/presets.md @@ -44,7 +44,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -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'; diff --git a/website/versioned_docs/version-29.0/guides/esm-support.md b/website/versioned_docs/version-29.0/guides/esm-support.md index 5e78bfa750..a89abfd462 100644 --- a/website/versioned_docs/version-29.0/guides/esm-support.md +++ b/website/versioned_docs/version-29.0/guides/esm-support.md @@ -38,7 +38,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] @@ -107,7 +107,7 @@ module.exports = { ``` ```ts tab -import type { JestConfigWithTsJest } from './types' +import type { JestConfigWithTsJest } from 'ts-jest' const jestConfig: JestConfigWithTsJest = { // [...] diff --git a/website/versioned_docs/version-29.0/guides/react-native.md b/website/versioned_docs/version-29.0/guides/react-native.md index 3e238797ea..ae1212ac5b 100644 --- a/website/versioned_docs/version-29.0/guides/react-native.md +++ b/website/versioned_docs/version-29.0/guides/react-native.md @@ -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'], @@ -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',