[change] Text uses createContext

Replaces the legacy 'contextTypes' API.
Removes 'enzyme' from related tests. Back to recording DOM snapshots.

Close #1248
Ref #1172
This commit is contained in:
Nicolas Gallagher
2019-07-01 17:29:19 -07:00
parent 25dd43e960
commit d554d83727
13 changed files with 724 additions and 211 deletions
+4 -1
View File
@@ -11,7 +11,10 @@ module.exports = {
rootDir: process.cwd(),
roots: ['<rootDir>/packages'],
setupFiles: ['jest-canvas-mock'],
setupFilesAfterEnv: [require.resolve('./setupFramework.js')],
setupFilesAfterEnv: [
'@testing-library/react/cleanup-after-each',
require.resolve('./setupFramework.js')
],
snapshotSerializers: ['enzyme-to-json/serializer'],
testEnvironment: 'jsdom',
timers: 'fake'