Skip to content

Commit

Permalink
jest: fix setup for typeorm to be importable in tests
Browse files Browse the repository at this point in the history
It needs to be transpiled, but also the global window variable was
breaking this code:
https://github.com/typeorm/typeorm/blob/e4de0403e1f666639c0198e216409f997121c1e8/src/platform/BrowserPlatformTools.template#L20
  • Loading branch information
mnzaki committed Aug 16, 2019
1 parent c6fe7d6 commit 4aa206c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ module.exports = {
"enzyme-to-json/serializer"
],
transformIgnorePatterns: [
"node_modules/(?!react-native|native-base|@?react-navigation|react-native-fabric)"
"node_modules/(?!react-native|native-base|@?react-navigation|react-native-fabric|typeorm)"
],
globals: {
window: true,
"ts-jest": {
babelConfig: true
}
Expand Down

0 comments on commit 4aa206c

Please sign in to comment.