Skip to content

Commit 770470a

Browse files
committed
Make sure all node js version are the same
1 parent 5dad1ea commit 770470a

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/browserstack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [22]
17+
node-version: [22.16]
1818

1919
steps:
2020
- uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
4242

4343
strategy:
4444
matrix:
45-
node-version: [22]
45+
node-version: [22.16]
4646

4747
steps:
4848
- name: "BrowserStack Env Setup"

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.16
1+
22.16

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "9.0.0",
44
"description": "Simple Analytics visitor facing scripts",
55
"main": "compile.js",
6+
"engines": {
7+
"node": "22.16"
8+
},
69
"scripts": {
710
"playground": "./playground.sh",
811
"watch": "node_modules/.bin/nodemon compile.js --ignore dist",

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const getDeviceName = ({
231231

232232
suiteInstance.addTest(
233233
new Mocha.Test(`Test Node.js environment`, async function () {
234-
expect(process.version, "Should use Node.js 16.16").to.match(/^v16\.16/);
234+
expect(process.version, "Should use Node.js 22.16").to.match(/^v22\.16/);
235235
})
236236
);
237237

0 commit comments

Comments
 (0)