Skip to content

Commit

Permalink
chore: setup jest
Browse files Browse the repository at this point in the history
  • Loading branch information
msabree committed Oct 2, 2023
1 parent 9ac37db commit c766a56
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
preset: 'react-native',
setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'],
setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'],
transformIgnorePatterns: [
'node_modules/(?!(@react-native|react-native|react-native-reanimated)/)',
],
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'!**/node_modules/**',
'!**/types/**',
'!src/**/*.d.ts',
],
};
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Chessboard } from './components/Chessboard/Chessboard';

export default Chessboard;

0 comments on commit c766a56

Please sign in to comment.