File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2730Please keep in mind that the resulting configuration must be JSON-serializable.
Original file line number Diff line number Diff 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
2730Please keep in mind that the resulting configuration must be JSON-serializable.
Original file line number Diff line number Diff 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
2730Please keep in mind that the resulting configuration must be JSON-serializable.
Original file line number Diff line number Diff 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
2730Please keep in mind that the resulting configuration must be JSON-serializable.
Original file line number Diff line number Diff 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
2730Please keep in mind that the resulting configuration must be JSON-serializable.
Original file line number Diff line number Diff 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
2831module .exports = async () => {
2932 return {
Original file line number Diff line number Diff 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
2831module .exports = async () => {
2932 return {
Original file line number Diff line number Diff 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
2831module .exports = async () => {
2932 return {
Original file line number Diff line number Diff 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
2831module .exports = async () => {
2932 return {
You can’t perform that action at this time.
0 commit comments