You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/Configuration.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: configuration
3
3
title: Configuring Jest
4
4
---
5
5
6
-
Jest's configuration can be defined in the `package.json` file of your project, or through a `jest.config.js` file or through the `--config <path/to/file.js|cjs|json>` option. If you'd like to use your `package.json` to store Jest's config, the "jest" key should be used on the top level so Jest will know how to find your settings:
6
+
Jest's configuration can be defined in the `package.json` file of your project, or through a `jest.config.js` file or through the `--config <path/to/file.js|cjs|mjs|json>` option. If you'd like to use your `package.json` to store Jest's config, the `"jest"` key should be used on the top level so Jest will know how to find your settings:
Copy file name to clipboardexpand all lines: packages/jest-cli/src/init/__tests__/__snapshots__/init.test.js.snap
+9
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,15 @@ Object {
36
36
}
37
37
`;
38
38
39
+
exports[`init has-jest-config-file-mjs ask the user whether to override config or not user answered with "Yes" 1`] =`
40
+
Object {
41
+
"initial": true,
42
+
"message": "It seems that you already have a jest configuration, do you want to override it?",
43
+
"name": "continue",
44
+
"type": "confirm",
45
+
}
46
+
`;
47
+
39
48
exports[`init project with package.json and no jest config all questions answered with answer: "No" should return the default configuration (an empty config) 1`] =`
40
49
"// For a detailed explanation regarding each configuration property, visit: