Skip to content

Commit

Permalink
fix: fix test configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
edenstrom committed Dec 16, 2021
1 parent ffd73e8 commit e6f213a
Show file tree
Hide file tree
Showing 9 changed files with 255 additions and 195 deletions.
14 changes: 9 additions & 5 deletions libs/api-hjarntorget/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
displayName: 'api-hjarntorget',
preset: 'react-native',
resolver: '@nrwl/jest/plugins/resolver',
moduleFileExtensions: ['ts', 'js', 'html', 'tsx', 'jsx'],
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],
transform: {
'.(ts|tsx)': 'ts-jest',
'\\.(js|ts|tsx)$': require.resolve('react-native/jest/preprocessor.js'),
'^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$': require.resolve(
'react-native/jest/assetFileTransformer.js'
),
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$',
moduleFileExtensions: ['ts', 'tsx', 'js'],
}
Loading

0 comments on commit e6f213a

Please sign in to comment.