Skip to content

Commit 13fe141

Browse files
committed
chore: fix tests for Windows, enable CI
1 parent ae4806f commit 13fe141

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
CI: true
1414
strategy:
1515
matrix:
16-
os: [ ubuntu-latest ]
16+
os: [ ubuntu-latest, windows-latest ]
1717
node: [ 12, 14, 16 ]
1818
runs-on: ${{ matrix.os }}
1919
steps:

tests/config/setup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { configure } from "cli-testing-library";
44
import "cli-testing-library/extend-expect";
55

66
configure({
7-
asyncUtilTimeout: 2000,
8-
renderAwaitTime: 1000,
9-
errorDebounceTimeout: 1000,
7+
asyncUtilTimeout: 8000,
8+
renderAwaitTime: 4000,
9+
errorDebounceTimeout: 4000,
1010
});

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ export default defineConfig({
88
test: {
99
globals: true,
1010
setupFiles: ['./tests/config/setup.js'],
11+
testTimeout: 10000,
12+
hookTimeout: 10000
1113
},
1214
})

0 commit comments

Comments
 (0)