Skip to content

Instantly share code, notes, and snippets.

@vzaidman
Created November 24, 2020 11:10
Show Gist options
  • Save vzaidman/5172055870d95b8325cfecf0d7d3ece0 to your computer and use it in GitHub Desktop.
Save vzaidman/5172055870d95b8325cfecf0d7d3ece0 to your computer and use it in GitHub Desktop.
How to test two React versions
module.exports = {
...require('../jest.config'),
rootDir: '..',
cacheDirectory: '.cache/jest-cache-react-16',
moduleDirectories: [
'<rootDir>/test-react-16/node_modules',
'node_modules'
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment