File tree Expand file tree Collapse file tree 3 files changed +113
-156
lines changed
Expand file tree Collapse file tree 3 files changed +113
-156
lines changed Original file line number Diff line number Diff line change 154154 "repl" : " node --require ./scripts/repl.js"
155155 },
156156 "resolutions" : {
157+ "cheerio" : " 1.0.0-rc.3" ,
157158 "merge" : " ^2.1.1"
158159 },
159160 "packageManager" :
" [email protected] "
Original file line number Diff line number Diff line change 11// Define globals we would usually get from Django
22import React from "react"
33import ReactDOM from "react-dom"
4- import { configure } from "enzyme"
4+ import Enzyme from "enzyme"
55import Adapter from "enzyme-adapter-react-16"
66import * as ReactTransitionGroup from "react-transition-group"
77
8- configure ( { adapter : new Adapter ( ) } )
8+ Enzyme . configure ( { adapter : new Adapter ( ) } )
99
1010const _createSettings = ( ) => ( {
1111 user : {
@@ -44,16 +44,6 @@ if (!Object.entries) {
4444}
4545
4646import fetchMock from "fetch-mock"
47- // Mock react-transition-group which is used by material-ui. It causes test failures due to a callback timed to
48- // occur after the test has already cleaned up the DOM elements.
49- const FakeTransition = ( { children } ) => children ( )
50- const FakeCSSTransition = props =>
51- props . in ? < FakeTransition > { props . children } </ FakeTransition > : null
52- // adapted from https://testing-library.com/docs/example-react-transition-group
53- // eslint-disable-next-line no-import-assign
54- ReactTransitionGroup . Transition = FakeTransition
55- // eslint-disable-next-line no-import-assign
56- ReactTransitionGroup . CSSTransition = FakeCSSTransition
5747
5848// eslint-disable-next-line mocha/no-top-level-hooks
5949beforeEach ( ( ) => {
You can’t perform that action at this time.
0 commit comments