Skip to content

Commit 92ceb15

Browse files
committed
chore: prefer node test vs jest test
1 parent c52e83d commit 92ceb15

17 files changed

+4371
-4872
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,32 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [20.x]
15+
node-version: [20.x, 22.x, 24.x]
1616

1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v3
2020

21-
- name: Install Node.js
21+
- name: Install Node.js ${{ matrix.node-version }}
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version: 20
25-
- run: npm install
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Install dependencies
27+
run: npm install
28+
2629
- name: Setup Chomp
2730
uses: guybedford/chomp-action@v1
2831
env:
2932
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
- run: chomp build
31-
- run: chomp lint
32-
- run: chomp test
33+
34+
- name: Build
35+
run: chomp build
36+
37+
- name: Lint
38+
run: chomp lint
39+
40+
- name: Run tests
41+
run: chomp test
3342
env:
34-
CI: true
43+
CI: true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
24

chompfile.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ deps = ['default', 'build']
8787

8888
[[task]]
8989
name = 'test:unit'
90-
run = 'jest'
90+
run = 'tsx --test tests/*.test.ts'
9191

9292
[[task]]
9393
name = 'test:changed'
94-
run = 'jest --bail --changesince=main'
94+
run = 'tsx --test tests/*.test.ts'
9595

9696
[[task]]
9797
name = 'typecheck'

0 commit comments

Comments
 (0)