Skip to content

Commit

Permalink
fix: fixed tests for node
Browse files Browse the repository at this point in the history
  • Loading branch information
mszmida committed May 8, 2024
1 parent 6c82661 commit 3386906
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test
on:
on:
push:
branches:
- master
Expand All @@ -22,7 +22,7 @@ jobs:
- { os: 'windows-2022', tool: 'node+jest' }
runs-on: ${{ matrix.env.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Testing `bun`
- uses: oven-sh/setup-bun@v1
Expand All @@ -36,6 +36,10 @@ jobs:
if: ${{ matrix.env.tool == 'bun' }}

# Testing `node+jest`
- uses: actions/setup-node@v4
with:
node-version: '21'
if: ${{ matrix.env.tool == 'node+jest' }}
- name: Install and test with Node
run: |
node -v && npm -v
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"engines": {
"bun": ">=1",
"node": ">=18"
"node": ">=20"
},
"jest": {
"setupFilesAfterEnv": ["jest-extended/all"]
Expand Down
3 changes: 1 addition & 2 deletions packages/glow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

"engines": {
"bun": ">= 1",
"node": ">= 18"
"node": ">= 20"
}
}

2 changes: 1 addition & 1 deletion packages/nuejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@

"engines": {
"bun": ">= 1",
"node": ">= 18"
"node": ">= 20"
}
}
2 changes: 1 addition & 1 deletion packages/nuekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"engines": {
"bun": ">= 1",
"node": ">= 18"
"node": ">= 20"
},
"devDependencies": {
"@happy-dom/global-registrator": "^14.7.1"
Expand Down
4 changes: 4 additions & 0 deletions packages/nuekit/test/page-router.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import * as fs from 'node:fs/promises'

import { createKit } from '../src/nuekit.js'

const __dirname = path.dirname(import.meta.filename)

console.log('__dirname', __dirname)

// temporary directory
const dist = path.join(__dirname, './page-router-test/.dist')
const distDev = `${dist}/dev`
Expand Down

0 comments on commit 3386906

Please sign in to comment.