Skip to content

Commit 71e0a00

Browse files
committed
adding readme
1 parent b6c0da6 commit 71e0a00

2 files changed

Lines changed: 20 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
22-
- name: Run tests with coverage
23-
run: npm run test:cov
22+
- name: Run tests
23+
env:
24+
CI: true
25+
run: npm test -- --ci

jest.config.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
// jest.config.js
21
module.exports = {
3-
preset: 'jest-expo',
4-
testMatch: ['**/__tests__/**/*.test.ts?(x)'],
5-
transform: { '^.+\\.(ts|tsx)$': 'ts-jest' },
6-
transformIgnorePatterns: [
7-
'node_modules/(?!(jest-)?react-native|expo(nent)?|@expo(nent)?/.*|@react-native/.*)',
8-
],
9-
setupFiles: ['<rootDir>/jest.setup.ts'],
10-
collectCoverageFrom: [
11-
'src/**/*.{ts,tsx}',
12-
'!src/**/__mocks__/**',
13-
'!src/**/supabase.ts', // if you don’t want to count this
14-
],
15-
};
2+
preset: 'jest-expo',
3+
testMatch: ['**/__tests__/**/*.test.ts?(x)'],
4+
transform: { '^.+\\.(ts|tsx)$': 'ts-jest' },
5+
transformIgnorePatterns: [
6+
'node_modules/(?!(jest-)?react-native|expo(nent)?|@expo(nent)?/.*|@react-native/.*)',
7+
],
8+
setupFiles: ['<rootDir>/jest.setup.ts'],
9+
collectCoverageFrom: [
10+
'src/**/*.{ts,tsx}',
11+
'!src/**/__mocks__/**',
12+
'!src/**/supabase.ts',
13+
],
14+
reporters: process.env.CI
15+
? ['default', ['jest-junit', { outputDirectory: './coverage', outputName: 'junit.xml' }]]
16+
: undefined,
17+
};

0 commit comments

Comments
 (0)