Skip to content

Commit 59db75c

Browse files
committed
update the versioned docs
1 parent 2adba4e commit 59db75c

9 files changed

Lines changed: 36 additions & 9 deletions

File tree

website/versioned_docs/version-22.x/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ Or through JavaScript:
1919

2020
```js
2121
// jest.config.js
22-
module.exports = {
22+
/** @type {import('@jest/types').Config.InitialOptions} */
23+
const config = {
2324
verbose: true,
2425
};
26+
27+
module.exports = config;
2528
```
2629

2730
Please keep in mind that the resulting configuration must be JSON-serializable.

website/versioned_docs/version-23.x/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ Or through JavaScript:
1919

2020
```js
2121
// jest.config.js
22-
module.exports = {
22+
/** @type {import('@jest/types').Config.InitialOptions} */
23+
const config = {
2324
verbose: true,
2425
};
26+
27+
module.exports = config;
2528
```
2629

2730
Please keep in mind that the resulting configuration must be JSON-serializable.

website/versioned_docs/version-24.x/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ Or through JavaScript:
1919

2020
```js
2121
// jest.config.js
22-
module.exports = {
22+
/** @type {import('@jest/types').Config.InitialOptions} */
23+
const config = {
2324
verbose: true,
2425
};
26+
27+
module.exports = config;
2528
```
2629

2730
Please keep in mind that the resulting configuration must be JSON-serializable.

website/versioned_docs/version-25.x/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ Or through JavaScript:
1919

2020
```js
2121
// jest.config.js
22-
module.exports = {
22+
/** @type {import('@jest/types').Config.InitialOptions} */
23+
const config = {
2324
verbose: true,
2425
};
26+
27+
module.exports = config;
2528
```
2629

2730
Please keep in mind that the resulting configuration must be JSON-serializable.

website/versioned_docs/version-26.0/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ Or through JavaScript:
1919

2020
```js
2121
// jest.config.js
22-
module.exports = {
22+
/** @type {import('@jest/types').Config.InitialOptions} */
23+
const config = {
2324
verbose: true,
2425
};
26+
27+
module.exports = config;
2528
```
2629

2730
Please keep in mind that the resulting configuration must be JSON-serializable.

website/versioned_docs/version-26.2/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ Or through JavaScript:
2020
```js
2121
// jest.config.js
2222
// Sync object
23-
module.exports = {
23+
/** @type {import('@jest/types').Config.InitialOptions} */
24+
const config = {
2425
verbose: true,
2526
};
2627

28+
module.exports = config;
29+
2730
// Or async function
2831
module.exports = async () => {
2932
return {

website/versioned_docs/version-26.4/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ Or through JavaScript:
2020
```js
2121
// jest.config.js
2222
// Sync object
23-
module.exports = {
23+
/** @type {import('@jest/types').Config.InitialOptions} */
24+
const config = {
2425
verbose: true,
2526
};
2627

28+
module.exports = config;
29+
2730
// Or async function
2831
module.exports = async () => {
2932
return {

website/versioned_docs/version-26.5/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ Or through JavaScript:
2020
```js
2121
// jest.config.js
2222
// Sync object
23-
module.exports = {
23+
/** @type {import('@jest/types').Config.InitialOptions} */
24+
const config = {
2425
verbose: true,
2526
};
2627

28+
module.exports = config;
29+
2730
// Or async function
2831
module.exports = async () => {
2932
return {

website/versioned_docs/version-26.6/Configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ Or through JavaScript:
2020
```js
2121
// jest.config.js
2222
// Sync object
23-
module.exports = {
23+
/** @type {import('@jest/types').Config.InitialOptions} */
24+
const config = {
2425
verbose: true,
2526
};
2627

28+
module.exports = config;
29+
2730
// Or async function
2831
module.exports = async () => {
2932
return {

0 commit comments

Comments
 (0)