import Enzyme from 'enzyme' ; import Adapter from 'enzyme-adapter-react-16' ; Enzyme . configure ( { adapter : new Adapter ( ) } ) ; const context = require . context ( '.' , true , /\.test\.[tj]sx?$/ ) ; context . keys ( ) . forEach ( context ) ;