Uh oh!
There was an error while loading. Please reload this page.
Added snapshotResolver to the supported Jest config variables - #7494
Added snapshotResolver to the supported Jest config variables#7494akuji1993 wants to merge 2 commits into
Conversation
facebook-github-bot
commented
Aug 9, 2019
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
facebook-github-bot
commented
Aug 9, 2019
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
philwindsor
commented
Apr 24, 2020
Is this likely to be merged any time soon? |
bigfoot31
commented
Jun 11, 2020
For those still waiting for the pull request to be accepted, you can use CRACO configuration to bypass create-react-app restrictions. // snapshotResolver.jsmodule.exports={testPathForConsistencyCheck: "src/views/hoc/pagination.test.tsx",resolveSnapshotPath: (testPath,snapshotExtension)=>testPath+snapshotExtension,resolveTestPath: (snapshotFilePath,snapshotExtension)=>snapshotFilePath.slice(0,-snapshotExtension.length),};// craco.config.jsmodule.exports={jest: {configure: {snapshotResolver: "./snapshotResolver.js",},},} |
karankrishnani
commented
Mar 4, 2021
Whats the latest on this? Would be really useful to have this! Thanks! |
jslmariano
commented
Jul 22, 2021
Also waiting for this one :) |
iammary
commented
Mar 15, 2022
thank you craco! |
Fixes#6532.
by adding
snapshotResolverto the supported Jest variables.