Skip to content

Commit b5d304b

Browse files
authored
Merge pull request #9 from JacobLinCool/fix-8
fix: update the regexp to match location
2 parents 44d1b76 + 37dfb63 commit b5d304b

8 files changed

Lines changed: 2217 additions & 4720 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request_target:
7+
pull_request:
88
branches:
99
- main
1010
workflow_dispatch:
@@ -36,5 +36,10 @@ jobs:
3636
- name: Build
3737
run: pnpm i && pnpm build
3838

39-
- name: Test
39+
- name: Test (w/ service)
40+
run: sudo -E $PNPM_HOME/pnpm test
41+
if: matrix.os != 'windows-latest'
42+
43+
- name: Test (w/o service)
4044
run: pnpm test
45+
if: matrix.os == 'windows-latest'

jest.config.cjs

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "./lib/lib.d.ts",
77
"bin": "./lib/cloudflared.js",
88
"scripts": {
9-
"test": "jest --coverage",
9+
"test": "vitest",
1010
"dev": "tsup --watch",
1111
"build": "tsup",
1212
"docs": "typedoc ./src/lib.ts",
@@ -30,19 +30,17 @@
3030
"scripts"
3131
],
3232
"devDependencies": {
33-
"@types/jest": "^28.1.6",
3433
"@types/node": "^18.0.6",
3534
"@typescript-eslint/eslint-plugin": "^5.30.7",
3635
"@typescript-eslint/parser": "^5.30.7",
3736
"cloudflared": "workspace:*",
3837
"eslint": "^8.20.0",
3938
"eslint-config-prettier": "^8.5.0",
40-
"jest": "^28.1.3",
4139
"prettier": "^2.7.1",
42-
"ts-jest": "^28.0.7",
4340
"tsup": "^6.1.3",
4441
"typedoc": "^0.23.8",
45-
"typescript": "^4.7.4"
42+
"typescript": "^4.7.4",
43+
"vitest": "^0.34.4"
4644
},
4745
"homepage": "https://github.com/JacobLinCool/node-cloudflared#readme",
4846
"repository": {

0 commit comments

Comments
 (0)