diff --git a/jest.config.js b/jest.config.js index a20da47a09..437d07f439 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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 } diff --git a/ormconfig.ts b/ormconfig.ts index db250c15e4..ce99502024 100644 --- a/ormconfig.ts +++ b/ormconfig.ts @@ -1,7 +1,8 @@ import { entityList } from './src/lib/storage/entities' import { Initial1565886000404 } from './src/lib/storage/migration/1565886000404-initial' +import { ConnectionOptions } from 'typeorm/browser' -export default { +const typeOrmConfig: ConnectionOptions = { type: 'react-native', database: 'LocalSmartWalletData', location: 'default', @@ -14,3 +15,5 @@ export default { migrationsDir: 'src/lib/storage/migration', }, } + +export default typeOrmConfig