Skip to content

Commit 3ae3df5

Browse files
committed
chore: add tests for Node
1 parent 356fc69 commit 3ae3df5

File tree

5 files changed

+180
-0
lines changed

5 files changed

+180
-0
lines changed

.github/workflows/test-node.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test (Node)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 22.x
18+
- name: Install deps
19+
run: |
20+
npx jsr install
21+
- name: Test
22+
run: |
23+
npx --yes tsx --test *_test.ts
24+
npx --yes tsx --test async/*_test.ts
25+
npx --yes tsx --test pipe/*_test.ts
26+
npx --yes tsx --test pipe/async/*_test.ts
27+
timeout-minutes: 5

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/docs
22
deno.lock
33
.coverage
4+
node_modules

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@jsr:registry=https://npm.jsr.io

package-lock.json

Lines changed: 139 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"type": "module",
3+
"dependencies": {
4+
"@core/pipe": "npm:@jsr/core__pipe@^0.2.0-pre.0",
5+
"@core/unknownutil": "npm:@jsr/core__unknownutil@^4.2.0",
6+
"@cross/test": "npm:@jsr/cross__test@^0.0.9",
7+
"@std/assert": "npm:@jsr/std__assert@^1.0.2",
8+
"@std/jsonc": "npm:@jsr/std__jsonc@^1.0.0-rc.3",
9+
"@std/path": "npm:@jsr/std__path@^1.0.2",
10+
"@std/testing": "npm:@jsr/std__testing@^1.0.0-rc.5"
11+
}
12+
}

0 commit comments

Comments
 (0)