Skip to content

Commit 5cb37c1

Browse files
committed
feat(ci): adding unit tests
1 parent 6254867 commit 5cb37c1

File tree

3 files changed

+314
-46
lines changed

3 files changed

+314
-46
lines changed

package-lock.json

Lines changed: 36 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"@babel/types": "^7.27.6",
23-
"@biomejs/biome": "1.9.4",
23+
"@biomejs/biome": "^2.3.8",
2424
"@types/babel__generator": "^7.27.0",
2525
"@types/node": "latest",
2626
"@typescript-eslint/eslint-plugin": "^8.15.0",
@@ -37,10 +37,14 @@
3737
"scripts": {
3838
"build": "tsc",
3939
"watch": "tsc --watch",
40-
"test": "npm run test:biome && npm run build && npm run test:demo",
40+
"pretest": "npm run build",
41+
"fix": "biome check --write",
42+
"lint": "biome check",
43+
"test": "npm run test:biome && npm run test:emit && npm run test:unit",
4144
"prepublishOnly": "npm run build",
4245
"test:biome": "biome check src",
43-
"test:demo": "cd demo; npm i; npm run build"
46+
"test:emit": "tsp compile test/main.tsp --config test/tspconfig.yaml",
47+
"test:unit": "node --test test/*.test.js"
4448
},
4549
"dependencies": {
4650
"@babel/generator": "^7.27.5",

0 commit comments

Comments
 (0)