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: README.md
+22-2
Original file line number
Diff line number
Diff line change
@@ -135,11 +135,31 @@ yarn add -D jest-extended
135
135
136
136
Note that `jest-extended` only supports Jest version 24 and newer.
137
137
138
-
Add `jest-extended` to your Jest `setupFilesAfterEnv` configuration. [See for help](https://jestjs.io/docs/en/configuration.html#setupfilesafterenv-array)
Add your setup script to your Jest `setupFilesAfterEnv` configuration. [See for help](https://jestjs.io/docs/en/configuration.html#setupfilesafterenv-array)
151
+
152
+
```json
153
+
"jest": {
154
+
"setupFilesAfterEnv": ["./testSetup.js"]
155
+
}
156
+
```
157
+
158
+
To automatically extend `expect` with all matchers, you can use
0 commit comments