Skip to content

Commit ef25833

Browse files
author
Sebastian Silbermann
committed
Run CI with 18
1 parent 334bed3 commit ef25833

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/validate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
node: [14, 16, 18]
33-
react: [latest, canary, experimental]
33+
react: ["18.x", latest, canary, experimental]
3434
runs-on: ubuntu-latest
3535
steps:
3636
- name: ⬇️ Checkout repo

jest.config.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const {jest: jestConfig} = require('kcd-scripts/config')
2+
3+
module.exports = Object.assign(jestConfig, {
4+
coverageThreshold: {
5+
...jestConfig.coverageThreshold,
6+
// Full coverage across the build matrix (React 18, 19) but not in a single job
7+
// Ful coverage is checked via codecov
8+
'./src/act-compat.js': {
9+
// minimum coverage of jobs using React 18 and 19
10+
branches: 90,
11+
functions: 100,
12+
lines: 100,
13+
statements: 100,
14+
},
15+
},
16+
})

0 commit comments

Comments
 (0)