Skip to content

Commit

Permalink
Update test/coverage-test/test/threshold-failure.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ari Perkkiö <[email protected]>
  • Loading branch information
jonahkagan and AriPerkkio authored Dec 17, 2024
1 parent bde1341 commit 8bfe5e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/coverage-test/test/threshold-failure.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ test('failing absolute thresholds', async () => {
}, { throwOnError: false })

expect(exitCode).toBe(1)

if (isV8Provider()) {
expect(stderr).toContain(`ERROR: Uncovered lines (6) exceed "**/fixtures/src/math.ts" threshold (5)`)
expect(stderr).toContain(`ERROR: Uncovered functions (3) exceed "**/fixtures/src/math.ts" threshold (2)`)
expect(stderr).toContain('ERROR: Uncovered lines (6) exceed "**/fixtures/src/math.ts" threshold (5)')
expect(stderr).toContain('ERROR: Uncovered functions (3) exceed "**/fixtures/src/math.ts" threshold (2)')
expect(stderr).toContain('ERROR: Uncovered statements (6) exceed "**/fixtures/src/math.ts" threshold (1)')
}
else {
expect(stderr).toContain(`ERROR: Uncovered functions (3) exceed "**/fixtures/src/math.ts" threshold (2)`)
expect(stderr).toContain('ERROR: Uncovered functions (3) exceed "**/fixtures/src/math.ts" threshold (2)')
expect(stderr).toContain('ERROR: Uncovered statements (3) exceed "**/fixtures/src/math.ts" threshold (1)')
}
})
Expand Down

0 comments on commit 8bfe5e2

Please sign in to comment.