Skip to content

Commit

Permalink
build: add test setup (via bun test)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 17, 2024
1 parent 6bae70c commit e862cd1
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build:examples": "yarn @example run build",
"clean": "yarn @genart-api run clean",
"doc": "yarn @genart-api run doc",
"test": "(cd packages && bun test)",
"tool:update-tpl": "node tools/update-tpl.js"
}
}
4 changes: 3 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
"build:types": "tsc -d --emitDeclarationOnly --noEmit false",
"build:dist": "node ../../tools/build-dist.js && cp ../../README.md .",
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/api.ts",
"publish": "yarn npm publish --access public"
"publish": "yarn npm publish --access public",
"test": "bun test"
},
"devDependencies": {
"bun-types": "^1.1.39",
"esbuild": "^0.24.0",
"typedoc": "^0.27.3",
"typescript": "^5.7.2"
Expand Down
45 changes: 45 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@genart-api/core@workspace:packages/core"
dependencies:
bun-types: "npm:^1.1.39"
esbuild: "npm:^0.24.0"
typedoc: "npm:^0.27.3"
typescript: "npm:^5.7.2"
Expand Down Expand Up @@ -1674,6 +1675,15 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*":
version: 22.10.2
resolution: "@types/node@npm:22.10.2"
dependencies:
undici-types: "npm:~6.20.0"
checksum: 10/451adfefed4add58b069407173e616220fd4aaa3307cdde1bb701aa053b65b54ced8483db2f870dcedec7a58cb3b06101fbc19d85852716672ec1fd3660947fa
languageName: node
linkType: hard

"@types/node@npm:^22.10.1":
version: 22.10.1
resolution: "@types/node@npm:22.10.1"
Expand All @@ -1683,13 +1693,31 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:~20.12.8":
version: 20.12.14
resolution: "@types/node@npm:20.12.14"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10/8ce987f0b7e15116e92894c51ee53fe0cbd98dafb5693a2e7d490f16396552528114d055ca1b144d3fdc5ba7d5f5ce28ad091a693c24337615f047cefc3faa36
languageName: node
linkType: hard

"@types/unist@npm:*":
version: 3.0.3
resolution: "@types/unist@npm:3.0.3"
checksum: 10/96e6453da9e075aaef1dc22482463898198acdc1eeb99b465e65e34303e2ec1e3b1ed4469a9118275ec284dc98019f63c3f5d49422f0e4ac707e5ab90fb3b71a
languageName: node
linkType: hard

"@types/ws@npm:~8.5.10":
version: 8.5.13
resolution: "@types/ws@npm:8.5.13"
dependencies:
"@types/node": "npm:*"
checksum: 10/21369beafa75c91ae3b00d3a2671c7408fceae1d492ca2abd5ac7c8c8bf4596d513c1599ebbddeae82c27c4a2d248976d0d714c4b3d34362b2ae35b964e2e637
languageName: node
linkType: hard

"abbrev@npm:^2.0.0":
version: 2.0.0
resolution: "abbrev@npm:2.0.0"
Expand Down Expand Up @@ -1808,6 +1836,16 @@ __metadata:
languageName: node
linkType: hard

"bun-types@npm:^1.1.39":
version: 1.1.39
resolution: "bun-types@npm:1.1.39"
dependencies:
"@types/node": "npm:~20.12.8"
"@types/ws": "npm:~8.5.10"
checksum: 10/68cb0e6cdddd4891db0c2fdb060adbc2f56b37d16c4af6b6490f5d9964c967f6dc609220b0784cc361aeb4461c8671a09676f720f1804b72ac1d386cf6433df5
languageName: node
linkType: hard

"cacache@npm:^19.0.1":
version: 19.0.1
resolution: "cacache@npm:19.0.1"
Expand Down Expand Up @@ -3332,6 +3370,13 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
checksum: 10/0097779d94bc0fd26f0418b3a05472410408877279141ded2bd449167be1aed7ea5b76f756562cb3586a07f251b90799bab22d9019ceba49c037c76445f7cddd
languageName: node
linkType: hard

"undici-types@npm:~6.20.0":
version: 6.20.0
resolution: "undici-types@npm:6.20.0"
Expand Down

0 comments on commit e862cd1

Please sign in to comment.