changtimwu / react-native-boilerplate-mobx-state-tree-typescript

Other
0 stars 0 forks source link

redundant setup in tests #6

Open changtimwu opened 6 years ago

changtimwu commented 6 years ago

now the following code is repeating in every test

import Adapter from "enzyme-adapter-react-16"
configure({ adapter: new Adapter() });

we should utilize the jest option setupTestFrameworkScriptFile https://basarat.gitbooks.io/typescript/docs/testing/jest.html to save the redundant

changtimwu commented 6 years ago

https://www.leighhalliday.com/testing-react-jest-enzyme-sinon