Skip to content

Commit

Permalink
add min cov
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-zh committed Aug 2, 2023
1 parent 91e1df3 commit ac8018c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
scope: ''
- run: yarn install
- run: npx eslint packages
- name: Run tests for kafka-avro-lib
run: yarn jest
- name: Run tests with coverage for kafka-avro-lib
run: yarn jest --coverage
working-directory: packages/kafka-avro-lib
- name: Run infection testing
run: npx stryker run
Expand Down
8 changes: 8 additions & 0 deletions packages/kafka-avro-lib/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
preset: 'ts-jest',
testEnvironment: 'node',
coverageThreshold: {
global: {
branches: 68,
functions: 62,
lines: 75,
statements: -18,
},
},
};

export default config;

0 comments on commit ac8018c

Please sign in to comment.