Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Assem-Hafez committed Apr 16, 2024
1 parent 59f948a commit 5b6857f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
with:
node-version: '18'
- run: npm ci
- run: npm run test --coverage
#- run: npm run lint:check
#- run: npm run test:unit
#- run: npm run test-server &
Expand Down
11 changes: 9 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import type { Config } from 'jest';

import nextJest from 'next/jest.js'

const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: './',
Expand Down Expand Up @@ -51,7 +51,14 @@ const config: Config = {
// ],

// An object that configures minimum threshold enforcement for coverage results
// coverageThreshold: undefined,
coverageThreshold: {
global: {
branches: 85,
functions: 85,
lines: 85,
statements: 85
}
},

// A path to a custom dependency extractor
// dependencyExtractor: undefined,
Expand Down

0 comments on commit 5b6857f

Please sign in to comment.