Lily Skye
Lily Skye
I added $250 to the bounty for this (non-expiring), so the bounty for this issue is now at $350.
You could probably call `removeUncheckedKeys()` in an "after all" hook. Assuming that works, we should add an API to chai-jest-snapshot that calls that, and add it to the recommended configurations...
> And the last issue comes back to matchSnapshot(). When snapshot tests are removed from some test file then matchSnapshot() is not being called no more and no SnapshotState is...
Could you post the contents of your webpack config and babelrc? If you could create a repo with these files that I could `npm install` and `npm test` to see...
The issue might have to do with you using `configureUsingMochaContext` and `setFilename` together; I don't have any tests covering that use-case (but if it doesn't work, it should be changed...
Hi @marie-hughes, are you using `configureUsingMochaContext` together with `setFilename`? If you are testing using Mocha, it is recommended to either [use `configureUsingMochaContext` on its own (without `setFilename`)](https://github.com/suchipi/chai-jest-snapshot#mocha-configuration-mode-recommended-for-mocha-users), or [use `setFilename`...
Ah, this should be fixed in the documentation. When using jest, the arguments to `matchSnapshot` are not used in the same way- you should use `jest -u` to update your...
Yeah. I'll keep this open and maybe later I'll see if it's possible to tell jest to update a single snapshot, and if it is, I'll make this behave like...
You should be able to use [babel-plugin-transform-dirname-filename](https://github.com/TooTallNate/babel-plugin-transform-dirname-filename) to get `__dirname` to work. However, if your tests are running in the browser, they won't be able to write to the disk...
I think this would need to happen upstream in jest-snapshot.