diff --git a/.github/workflows/unit.test.yml b/.github/workflows/unit.test.yml index 8a5a518..1c6eb60 100644 --- a/.github/workflows/unit.test.yml +++ b/.github/workflows/unit.test.yml @@ -29,7 +29,7 @@ jobs: corepack prepare yarn@4.5.3 --activate - name: Install dependencies - run: yarn install --immutable --inline-builds + run: yarn install --immutable - name: Run tests with coverage run: yarn test --coverage diff --git a/packages/ui/jest.config.js b/packages/ui/jest.config.js index 6d9fc80..d02e555 100644 --- a/packages/ui/jest.config.js +++ b/packages/ui/jest.config.js @@ -10,5 +10,16 @@ export default { transform: { '^.+\\.(ts|tsx)$': ['ts-jest'], '\\.css$': 'jest-transform-css' + }, + collectCoverage: true, + coverageDirectory: 'coverage', + coverageReporters: ['json-summary', 'text', 'lcov'], + coverageThreshold: { + global: { + branches: 80, + functions: 80, + lines: 80, + statements: 80 + } } } \ No newline at end of file