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,10 +19,13 @@ Or through JavaScript:
1919``` js
2020// jest.config.js
2121// Sync object
22- module .exports = {
22+ /** @type {import('@jest/types').Config.InitialOptions} */
23+ const config = {
2324 verbose: true ,
2425};
2526
27+ module .exports = config;
28+
2629// Or async function
2730module .exports = async () => {
2831 return {
Original file line number Diff line number Diff line change @@ -18,9 +18,12 @@ Or through JavaScript:
1818
1919``` js
2020// jest.config.js
21- module .exports = {
21+ /** @type {import('@jest/types').Config.InitialOptions} */
22+ const config = {
2223 verbose: true ,
2324};
25+
26+ module .exports = config;
2427```
2528
2629Please keep in mind that the resulting configuration must be JSON-serializable.
Original file line number Diff line number Diff line change @@ -19,10 +19,13 @@ Or through JavaScript:
1919``` js
2020// jest.config.js
2121// Sync object
22- module .exports = {
22+ /** @type {import('@jest/types').Config.InitialOptions} */
23+ const config = {
2324 verbose: true ,
2425};
2526
27+ module .exports = config;
28+
2629// Or async function
2730module .exports = async () => {
2831 return {
You can’t perform that action at this time.
0 commit comments