Skip to content

Commit afd65be

Browse files
committed
feat: add tests
1 parent 7117090 commit afd65be

23 files changed

Lines changed: 2096 additions & 808 deletions

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
23.5.0

dummy.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { Err } from 'ts-results-es';
2+
console.log(Err);

package.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "dist/index.js",
6+
"type": "module",
67
"scripts": {
7-
"build": "wireit"
8+
"build": "wireit",
9+
"test": "ava"
810
},
911
"wireit": {
1012
"build": {
@@ -22,22 +24,45 @@
2224
"probot": "^13.4.1"
2325
},
2426
"devDependencies": {
27+
"@types/sinon": "17.0.3",
28+
"ava": "6.2.0",
29+
"msw": "^2.7.0",
30+
"nock": "^13.5.6",
2531
"probot": "13.4.1",
32+
"sinon": "19.0.2",
2633
"typescript": "5.7.2",
27-
"vitest": "2.1.8",
2834
"wireit": "0.14.9"
2935
},
3036
"dependencies": {
3137
"@octokit/openapi-webhooks-types": "8.5.1",
3238
"@octokit/rest": "^21.0.2",
3339
"@octokit/types": "^13.6.2",
3440
"@octokit/webhooks": "^13.4.1",
35-
"p-queue": "6",
41+
"p-queue": "^8.0.1",
3642
"primitivify": "^3.0.1",
3743
"rxjs": "^7.8.1",
3844
"tmp-promise": "^3.0.3",
39-
"ts-results": "^3.3.0",
45+
"ts-results-es": "^4.2.0",
46+
"tslib": "^2.8.1",
4047
"tsx": "4.19.2",
4148
"utility-types": "^3.11.0"
49+
},
50+
"pnpm": {
51+
"overrides": {
52+
"@octokit/webhooks": "^13.4.1"
53+
}
54+
},
55+
"ava": {
56+
"files": [
57+
"src/**/*.test.ts"
58+
],
59+
"extensions": [
60+
"ts"
61+
],
62+
"nodeArguments": [
63+
"-C",
64+
"import",
65+
"--import=tsx"
66+
]
4267
}
4368
}

0 commit comments

Comments
 (0)