We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 586c4cd commit 1a898caCopy full SHA for 1a898ca
README.md
@@ -104,14 +104,13 @@ test('snapshot difference between 2 objects', () => {
104
105
...or add it globally to your jest config:
106
107
-```json
108
-{
109
- "jest": {
110
- "snapshotSerializers": [
111
- "<rootDir>/node_modules/snapshot-diff/serializer.js"
112
- ]
113
- }
114
-}
+```js
+// jest.config.js
+module.exports = {
+ snapshotSerializers: [
+ require.resolve('snapshot-diff/serializer.js'),
+ ],
+};
115
```
116
117
## API
0 commit comments