From 871a8e7cc90ff0972c8aee09075c7cd814b9289a Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sat, 5 Mar 2022 09:26:30 +0100 Subject: [PATCH] chore: format docs as MDX --- docs/Architecture.md | 18 ++++++++++++++++-- docs/CLI.md | 2 +- docs/Configuration.md | 2 +- docs/ExpectAPI.md | 2 +- docs/GlobalAPI.md | 2 +- docs/JestObjectAPI.md | 2 +- docs/MockFunctionAPI.md | 5 +++-- package.json | 9 +++++++++ .../version-25.x/Architecture.md | 18 ++++++++++++++++-- website/versioned_docs/version-25.x/CLI.md | 2 +- .../version-25.x/Configuration.md | 2 +- .../versioned_docs/version-25.x/ExpectAPI.md | 2 +- .../versioned_docs/version-25.x/GlobalAPI.md | 2 +- .../version-25.x/JestObjectAPI.md | 2 +- .../version-25.x/MockFunctionAPI.md | 2 +- .../version-26.x/Architecture.md | 18 ++++++++++++++++-- website/versioned_docs/version-26.x/CLI.md | 2 +- .../version-26.x/Configuration.md | 2 +- .../versioned_docs/version-26.x/ExpectAPI.md | 2 +- .../versioned_docs/version-26.x/GlobalAPI.md | 2 +- .../version-26.x/JestObjectAPI.md | 2 +- .../version-26.x/MockFunctionAPI.md | 2 +- .../version-27.0/Architecture.md | 18 ++++++++++++++++-- website/versioned_docs/version-27.0/CLI.md | 2 +- .../version-27.0/Configuration.md | 2 +- .../versioned_docs/version-27.0/ExpectAPI.md | 2 +- .../versioned_docs/version-27.0/GlobalAPI.md | 2 +- .../version-27.0/JestObjectAPI.md | 2 +- .../version-27.0/MockFunctionAPI.md | 2 +- .../version-27.1/Architecture.md | 18 ++++++++++++++++-- website/versioned_docs/version-27.1/CLI.md | 2 +- .../version-27.1/Configuration.md | 2 +- .../versioned_docs/version-27.1/ExpectAPI.md | 2 +- .../versioned_docs/version-27.1/GlobalAPI.md | 2 +- .../version-27.1/JestObjectAPI.md | 2 +- .../version-27.1/MockFunctionAPI.md | 2 +- .../version-27.2/Architecture.md | 18 ++++++++++++++++-- website/versioned_docs/version-27.2/CLI.md | 2 +- .../version-27.2/Configuration.md | 2 +- .../versioned_docs/version-27.2/ExpectAPI.md | 2 +- .../versioned_docs/version-27.2/GlobalAPI.md | 2 +- .../version-27.2/JestObjectAPI.md | 2 +- .../version-27.2/MockFunctionAPI.md | 2 +- .../version-27.4/Architecture.md | 18 ++++++++++++++++-- website/versioned_docs/version-27.4/CLI.md | 2 +- .../version-27.4/Configuration.md | 2 +- .../versioned_docs/version-27.4/ExpectAPI.md | 2 +- .../versioned_docs/version-27.4/GlobalAPI.md | 2 +- .../version-27.4/JestObjectAPI.md | 2 +- .../version-27.4/MockFunctionAPI.md | 2 +- .../version-27.5/Architecture.md | 18 ++++++++++++++++-- website/versioned_docs/version-27.5/CLI.md | 2 +- .../version-27.5/Configuration.md | 2 +- .../versioned_docs/version-27.5/ExpectAPI.md | 2 +- .../versioned_docs/version-27.5/GlobalAPI.md | 2 +- .../version-27.5/JestObjectAPI.md | 2 +- .../version-27.5/MockFunctionAPI.md | 2 +- 57 files changed, 187 insertions(+), 65 deletions(-) diff --git a/docs/Architecture.md b/docs/Architecture.md index 86da7948415d..300abd75d9f0 100644 --- a/docs/Architecture.md +++ b/docs/Architecture.md @@ -5,10 +5,24 @@ title: Architecture If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video: - + If you'd like to learn how to build a testing framework like Jest from scratch, check out this video: - + There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework. diff --git a/docs/CLI.md b/docs/CLI.md index f45e863dcda9..75bfb2164491 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -106,7 +106,7 @@ CLI options take precedence over values from the [Configuration](Configuration.m ::: -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/docs/Configuration.md b/docs/Configuration.md index d6563f74dd89..ec574c4129c8 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -80,7 +80,7 @@ module.exports = { }; ``` -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/docs/ExpectAPI.md b/docs/ExpectAPI.md index 17bd41437f64..da7a47365058 100644 --- a/docs/ExpectAPI.md +++ b/docs/ExpectAPI.md @@ -9,7 +9,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/docs/GlobalAPI.md b/docs/GlobalAPI.md index 34b4deb4d150..12f9f9a87c56 100644 --- a/docs/GlobalAPI.md +++ b/docs/GlobalAPI.md @@ -7,7 +7,7 @@ In your test files, Jest puts each of these methods and objects into the global ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/docs/JestObjectAPI.md b/docs/JestObjectAPI.md index 076138ea2ab3..ed99e97fc3d0 100644 --- a/docs/JestObjectAPI.md +++ b/docs/JestObjectAPI.md @@ -7,7 +7,7 @@ The `jest` object is automatically in scope within every test file. The methods ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/docs/MockFunctionAPI.md b/docs/MockFunctionAPI.md index 50315fa69871..35a28365e986 100644 --- a/docs/MockFunctionAPI.md +++ b/docs/MockFunctionAPI.md @@ -17,7 +17,7 @@ import {jest} from '@jest/globals'; ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; @@ -25,7 +25,8 @@ import TOCInline from "@theme/TOCInline" ## Reference -import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; ### `mockFn.getMockName()` diff --git a/package.json b/package.json index b3dc2b94766a..7aadf4a0e28d 100644 --- a/package.json +++ b/package.json @@ -137,6 +137,15 @@ "options": { "singleQuote": false } + }, + { + "files": [ + "docs/*.md", + "website/versioned_docs/*/*.md" + ], + "options": { + "parser": "mdx" + } } ] }, diff --git a/website/versioned_docs/version-25.x/Architecture.md b/website/versioned_docs/version-25.x/Architecture.md index 86da7948415d..300abd75d9f0 100644 --- a/website/versioned_docs/version-25.x/Architecture.md +++ b/website/versioned_docs/version-25.x/Architecture.md @@ -5,10 +5,24 @@ title: Architecture If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video: - + If you'd like to learn how to build a testing framework like Jest from scratch, check out this video: - + There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework. diff --git a/website/versioned_docs/version-25.x/CLI.md b/website/versioned_docs/version-25.x/CLI.md index fdff8daa65b9..0cced2a1ef26 100644 --- a/website/versioned_docs/version-25.x/CLI.md +++ b/website/versioned_docs/version-25.x/CLI.md @@ -100,7 +100,7 @@ jest --update-snapshot --detectOpenHandles _Note: CLI options take precedence over values from the [Configuration](Configuration.md)._ -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-25.x/Configuration.md b/website/versioned_docs/version-25.x/Configuration.md index 4c8ff050d880..6f9a9c607b1f 100644 --- a/website/versioned_docs/version-25.x/Configuration.md +++ b/website/versioned_docs/version-25.x/Configuration.md @@ -53,7 +53,7 @@ module.exports = { }; ``` -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-25.x/ExpectAPI.md b/website/versioned_docs/version-25.x/ExpectAPI.md index 60489deb81cb..c80f784f6d37 100644 --- a/website/versioned_docs/version-25.x/ExpectAPI.md +++ b/website/versioned_docs/version-25.x/ExpectAPI.md @@ -9,7 +9,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-25.x/GlobalAPI.md b/website/versioned_docs/version-25.x/GlobalAPI.md index 30769d70a9fe..04d9fae63e7f 100644 --- a/website/versioned_docs/version-25.x/GlobalAPI.md +++ b/website/versioned_docs/version-25.x/GlobalAPI.md @@ -7,7 +7,7 @@ In your test files, Jest puts each of these methods and objects into the global ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-25.x/JestObjectAPI.md b/website/versioned_docs/version-25.x/JestObjectAPI.md index 95a12c9e3e0f..3437f2f9d5f9 100644 --- a/website/versioned_docs/version-25.x/JestObjectAPI.md +++ b/website/versioned_docs/version-25.x/JestObjectAPI.md @@ -7,7 +7,7 @@ The `jest` object is automatically in scope within every test file. The methods ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-25.x/MockFunctionAPI.md b/website/versioned_docs/version-25.x/MockFunctionAPI.md index 7725fca4cac0..5bb3925c81a1 100644 --- a/website/versioned_docs/version-25.x/MockFunctionAPI.md +++ b/website/versioned_docs/version-25.x/MockFunctionAPI.md @@ -7,7 +7,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-26.x/Architecture.md b/website/versioned_docs/version-26.x/Architecture.md index 86da7948415d..300abd75d9f0 100644 --- a/website/versioned_docs/version-26.x/Architecture.md +++ b/website/versioned_docs/version-26.x/Architecture.md @@ -5,10 +5,24 @@ title: Architecture If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video: - + If you'd like to learn how to build a testing framework like Jest from scratch, check out this video: - + There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework. diff --git a/website/versioned_docs/version-26.x/CLI.md b/website/versioned_docs/version-26.x/CLI.md index e3894eca5d77..23dc787bf2e8 100644 --- a/website/versioned_docs/version-26.x/CLI.md +++ b/website/versioned_docs/version-26.x/CLI.md @@ -100,7 +100,7 @@ jest --update-snapshot --detectOpenHandles _Note: CLI options take precedence over values from the [Configuration](Configuration.md)._ -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-26.x/Configuration.md b/website/versioned_docs/version-26.x/Configuration.md index 3bcbb967ae24..b3e3fa0a8551 100644 --- a/website/versioned_docs/version-26.x/Configuration.md +++ b/website/versioned_docs/version-26.x/Configuration.md @@ -80,7 +80,7 @@ module.exports = { }; ``` -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-26.x/ExpectAPI.md b/website/versioned_docs/version-26.x/ExpectAPI.md index 60489deb81cb..c80f784f6d37 100644 --- a/website/versioned_docs/version-26.x/ExpectAPI.md +++ b/website/versioned_docs/version-26.x/ExpectAPI.md @@ -9,7 +9,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-26.x/GlobalAPI.md b/website/versioned_docs/version-26.x/GlobalAPI.md index c9024186b805..11c26be64c2b 100644 --- a/website/versioned_docs/version-26.x/GlobalAPI.md +++ b/website/versioned_docs/version-26.x/GlobalAPI.md @@ -7,7 +7,7 @@ In your test files, Jest puts each of these methods and objects into the global ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-26.x/JestObjectAPI.md b/website/versioned_docs/version-26.x/JestObjectAPI.md index 72d7268fa780..e2f4bdd0142a 100644 --- a/website/versioned_docs/version-26.x/JestObjectAPI.md +++ b/website/versioned_docs/version-26.x/JestObjectAPI.md @@ -7,7 +7,7 @@ The `jest` object is automatically in scope within every test file. The methods ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-26.x/MockFunctionAPI.md b/website/versioned_docs/version-26.x/MockFunctionAPI.md index 7725fca4cac0..5bb3925c81a1 100644 --- a/website/versioned_docs/version-26.x/MockFunctionAPI.md +++ b/website/versioned_docs/version-26.x/MockFunctionAPI.md @@ -7,7 +7,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.0/Architecture.md b/website/versioned_docs/version-27.0/Architecture.md index 86da7948415d..300abd75d9f0 100644 --- a/website/versioned_docs/version-27.0/Architecture.md +++ b/website/versioned_docs/version-27.0/Architecture.md @@ -5,10 +5,24 @@ title: Architecture If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video: - + If you'd like to learn how to build a testing framework like Jest from scratch, check out this video: - + There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework. diff --git a/website/versioned_docs/version-27.0/CLI.md b/website/versioned_docs/version-27.0/CLI.md index fe7e6d2a9c74..c54e39eca8ac 100644 --- a/website/versioned_docs/version-27.0/CLI.md +++ b/website/versioned_docs/version-27.0/CLI.md @@ -100,7 +100,7 @@ jest --update-snapshot --detectOpenHandles _Note: CLI options take precedence over values from the [Configuration](Configuration.md)._ -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.0/Configuration.md b/website/versioned_docs/version-27.0/Configuration.md index b6a65d6a50cc..ab8d4eda9693 100644 --- a/website/versioned_docs/version-27.0/Configuration.md +++ b/website/versioned_docs/version-27.0/Configuration.md @@ -80,7 +80,7 @@ module.exports = { }; ``` -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.0/ExpectAPI.md b/website/versioned_docs/version-27.0/ExpectAPI.md index ae9dd9428981..0d1adaef5782 100644 --- a/website/versioned_docs/version-27.0/ExpectAPI.md +++ b/website/versioned_docs/version-27.0/ExpectAPI.md @@ -9,7 +9,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.0/GlobalAPI.md b/website/versioned_docs/version-27.0/GlobalAPI.md index f1c91d80cc8c..26185d0d9885 100644 --- a/website/versioned_docs/version-27.0/GlobalAPI.md +++ b/website/versioned_docs/version-27.0/GlobalAPI.md @@ -7,7 +7,7 @@ In your test files, Jest puts each of these methods and objects into the global ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.0/JestObjectAPI.md b/website/versioned_docs/version-27.0/JestObjectAPI.md index 9787b4714e8b..de5d9a92a145 100644 --- a/website/versioned_docs/version-27.0/JestObjectAPI.md +++ b/website/versioned_docs/version-27.0/JestObjectAPI.md @@ -7,7 +7,7 @@ The `jest` object is automatically in scope within every test file. The methods ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.0/MockFunctionAPI.md b/website/versioned_docs/version-27.0/MockFunctionAPI.md index 7725fca4cac0..5bb3925c81a1 100644 --- a/website/versioned_docs/version-27.0/MockFunctionAPI.md +++ b/website/versioned_docs/version-27.0/MockFunctionAPI.md @@ -7,7 +7,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.1/Architecture.md b/website/versioned_docs/version-27.1/Architecture.md index 86da7948415d..300abd75d9f0 100644 --- a/website/versioned_docs/version-27.1/Architecture.md +++ b/website/versioned_docs/version-27.1/Architecture.md @@ -5,10 +5,24 @@ title: Architecture If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video: - + If you'd like to learn how to build a testing framework like Jest from scratch, check out this video: - + There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework. diff --git a/website/versioned_docs/version-27.1/CLI.md b/website/versioned_docs/version-27.1/CLI.md index fe7e6d2a9c74..c54e39eca8ac 100644 --- a/website/versioned_docs/version-27.1/CLI.md +++ b/website/versioned_docs/version-27.1/CLI.md @@ -100,7 +100,7 @@ jest --update-snapshot --detectOpenHandles _Note: CLI options take precedence over values from the [Configuration](Configuration.md)._ -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.1/Configuration.md b/website/versioned_docs/version-27.1/Configuration.md index a25b63928d00..59e1816d519c 100644 --- a/website/versioned_docs/version-27.1/Configuration.md +++ b/website/versioned_docs/version-27.1/Configuration.md @@ -80,7 +80,7 @@ module.exports = { }; ``` -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.1/ExpectAPI.md b/website/versioned_docs/version-27.1/ExpectAPI.md index c80d05184f97..ab3f63a70213 100644 --- a/website/versioned_docs/version-27.1/ExpectAPI.md +++ b/website/versioned_docs/version-27.1/ExpectAPI.md @@ -9,7 +9,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.1/GlobalAPI.md b/website/versioned_docs/version-27.1/GlobalAPI.md index 34b4deb4d150..12f9f9a87c56 100644 --- a/website/versioned_docs/version-27.1/GlobalAPI.md +++ b/website/versioned_docs/version-27.1/GlobalAPI.md @@ -7,7 +7,7 @@ In your test files, Jest puts each of these methods and objects into the global ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.1/JestObjectAPI.md b/website/versioned_docs/version-27.1/JestObjectAPI.md index 9787b4714e8b..de5d9a92a145 100644 --- a/website/versioned_docs/version-27.1/JestObjectAPI.md +++ b/website/versioned_docs/version-27.1/JestObjectAPI.md @@ -7,7 +7,7 @@ The `jest` object is automatically in scope within every test file. The methods ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.1/MockFunctionAPI.md b/website/versioned_docs/version-27.1/MockFunctionAPI.md index 7725fca4cac0..5bb3925c81a1 100644 --- a/website/versioned_docs/version-27.1/MockFunctionAPI.md +++ b/website/versioned_docs/version-27.1/MockFunctionAPI.md @@ -7,7 +7,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.2/Architecture.md b/website/versioned_docs/version-27.2/Architecture.md index 86da7948415d..300abd75d9f0 100644 --- a/website/versioned_docs/version-27.2/Architecture.md +++ b/website/versioned_docs/version-27.2/Architecture.md @@ -5,10 +5,24 @@ title: Architecture If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video: - + If you'd like to learn how to build a testing framework like Jest from scratch, check out this video: - + There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework. diff --git a/website/versioned_docs/version-27.2/CLI.md b/website/versioned_docs/version-27.2/CLI.md index 681ea9a231f0..f58b21efadbe 100644 --- a/website/versioned_docs/version-27.2/CLI.md +++ b/website/versioned_docs/version-27.2/CLI.md @@ -100,7 +100,7 @@ jest --update-snapshot --detectOpenHandles _Note: CLI options take precedence over values from the [Configuration](Configuration.md)._ -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.2/Configuration.md b/website/versioned_docs/version-27.2/Configuration.md index 336abed2721e..82773cfbeaf6 100644 --- a/website/versioned_docs/version-27.2/Configuration.md +++ b/website/versioned_docs/version-27.2/Configuration.md @@ -80,7 +80,7 @@ module.exports = { }; ``` -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.2/ExpectAPI.md b/website/versioned_docs/version-27.2/ExpectAPI.md index c80d05184f97..ab3f63a70213 100644 --- a/website/versioned_docs/version-27.2/ExpectAPI.md +++ b/website/versioned_docs/version-27.2/ExpectAPI.md @@ -9,7 +9,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.2/GlobalAPI.md b/website/versioned_docs/version-27.2/GlobalAPI.md index f1c91d80cc8c..26185d0d9885 100644 --- a/website/versioned_docs/version-27.2/GlobalAPI.md +++ b/website/versioned_docs/version-27.2/GlobalAPI.md @@ -7,7 +7,7 @@ In your test files, Jest puts each of these methods and objects into the global ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.2/JestObjectAPI.md b/website/versioned_docs/version-27.2/JestObjectAPI.md index 9787b4714e8b..de5d9a92a145 100644 --- a/website/versioned_docs/version-27.2/JestObjectAPI.md +++ b/website/versioned_docs/version-27.2/JestObjectAPI.md @@ -7,7 +7,7 @@ The `jest` object is automatically in scope within every test file. The methods ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.2/MockFunctionAPI.md b/website/versioned_docs/version-27.2/MockFunctionAPI.md index 7725fca4cac0..5bb3925c81a1 100644 --- a/website/versioned_docs/version-27.2/MockFunctionAPI.md +++ b/website/versioned_docs/version-27.2/MockFunctionAPI.md @@ -7,7 +7,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.4/Architecture.md b/website/versioned_docs/version-27.4/Architecture.md index 86da7948415d..300abd75d9f0 100644 --- a/website/versioned_docs/version-27.4/Architecture.md +++ b/website/versioned_docs/version-27.4/Architecture.md @@ -5,10 +5,24 @@ title: Architecture If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video: - + If you'd like to learn how to build a testing framework like Jest from scratch, check out this video: - + There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework. diff --git a/website/versioned_docs/version-27.4/CLI.md b/website/versioned_docs/version-27.4/CLI.md index 67c232187ebe..53a490f4533c 100644 --- a/website/versioned_docs/version-27.4/CLI.md +++ b/website/versioned_docs/version-27.4/CLI.md @@ -100,7 +100,7 @@ jest --update-snapshot --detectOpenHandles _Note: CLI options take precedence over values from the [Configuration](Configuration.md)._ -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.4/Configuration.md b/website/versioned_docs/version-27.4/Configuration.md index de8142770cf2..de7e3dd8d032 100644 --- a/website/versioned_docs/version-27.4/Configuration.md +++ b/website/versioned_docs/version-27.4/Configuration.md @@ -80,7 +80,7 @@ module.exports = { }; ``` -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.4/ExpectAPI.md b/website/versioned_docs/version-27.4/ExpectAPI.md index 755d8255a3a4..9d5c9c6bb0fb 100644 --- a/website/versioned_docs/version-27.4/ExpectAPI.md +++ b/website/versioned_docs/version-27.4/ExpectAPI.md @@ -9,7 +9,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.4/GlobalAPI.md b/website/versioned_docs/version-27.4/GlobalAPI.md index f1c91d80cc8c..26185d0d9885 100644 --- a/website/versioned_docs/version-27.4/GlobalAPI.md +++ b/website/versioned_docs/version-27.4/GlobalAPI.md @@ -7,7 +7,7 @@ In your test files, Jest puts each of these methods and objects into the global ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.4/JestObjectAPI.md b/website/versioned_docs/version-27.4/JestObjectAPI.md index d7d5dd809503..2a72e44c0310 100644 --- a/website/versioned_docs/version-27.4/JestObjectAPI.md +++ b/website/versioned_docs/version-27.4/JestObjectAPI.md @@ -7,7 +7,7 @@ The `jest` object is automatically in scope within every test file. The methods ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.4/MockFunctionAPI.md b/website/versioned_docs/version-27.4/MockFunctionAPI.md index 7725fca4cac0..5bb3925c81a1 100644 --- a/website/versioned_docs/version-27.4/MockFunctionAPI.md +++ b/website/versioned_docs/version-27.4/MockFunctionAPI.md @@ -7,7 +7,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.5/Architecture.md b/website/versioned_docs/version-27.5/Architecture.md index 86da7948415d..300abd75d9f0 100644 --- a/website/versioned_docs/version-27.5/Architecture.md +++ b/website/versioned_docs/version-27.5/Architecture.md @@ -5,10 +5,24 @@ title: Architecture If you are interested in learning more about how Jest works, understand its architecture, and how Jest is split up into individual reusable packages, check out this video: - + If you'd like to learn how to build a testing framework like Jest from scratch, check out this video: - + There is also a [written guide you can follow](https://cpojer.net/posts/building-a-javascript-testing-framework). It teaches the fundamental concepts of Jest and explains how various parts of Jest can be used to compose a custom testing framework. diff --git a/website/versioned_docs/version-27.5/CLI.md b/website/versioned_docs/version-27.5/CLI.md index 67c232187ebe..53a490f4533c 100644 --- a/website/versioned_docs/version-27.5/CLI.md +++ b/website/versioned_docs/version-27.5/CLI.md @@ -100,7 +100,7 @@ jest --update-snapshot --detectOpenHandles _Note: CLI options take precedence over values from the [Configuration](Configuration.md)._ -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.5/Configuration.md b/website/versioned_docs/version-27.5/Configuration.md index de8142770cf2..de7e3dd8d032 100644 --- a/website/versioned_docs/version-27.5/Configuration.md +++ b/website/versioned_docs/version-27.5/Configuration.md @@ -80,7 +80,7 @@ module.exports = { }; ``` -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.5/ExpectAPI.md b/website/versioned_docs/version-27.5/ExpectAPI.md index 17bd41437f64..da7a47365058 100644 --- a/website/versioned_docs/version-27.5/ExpectAPI.md +++ b/website/versioned_docs/version-27.5/ExpectAPI.md @@ -9,7 +9,7 @@ For additional Jest matchers maintained by the Jest Community check out [`jest-e ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.5/GlobalAPI.md b/website/versioned_docs/version-27.5/GlobalAPI.md index f1c91d80cc8c..26185d0d9885 100644 --- a/website/versioned_docs/version-27.5/GlobalAPI.md +++ b/website/versioned_docs/version-27.5/GlobalAPI.md @@ -7,7 +7,7 @@ In your test files, Jest puts each of these methods and objects into the global ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.5/JestObjectAPI.md b/website/versioned_docs/version-27.5/JestObjectAPI.md index d7d5dd809503..2a72e44c0310 100644 --- a/website/versioned_docs/version-27.5/JestObjectAPI.md +++ b/website/versioned_docs/version-27.5/JestObjectAPI.md @@ -7,7 +7,7 @@ The `jest` object is automatically in scope within every test file. The methods ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline'; diff --git a/website/versioned_docs/version-27.5/MockFunctionAPI.md b/website/versioned_docs/version-27.5/MockFunctionAPI.md index 35e2dcf5ff78..797536b24de5 100644 --- a/website/versioned_docs/version-27.5/MockFunctionAPI.md +++ b/website/versioned_docs/version-27.5/MockFunctionAPI.md @@ -7,7 +7,7 @@ Mock functions are also known as "spies", because they let you spy on the behavi ## Methods -import TOCInline from "@theme/TOCInline" +import TOCInline from '@theme/TOCInline';