Skip to content

Commit e6d9980

Browse files
test(astro): add tests (#5069)
This adds about 85% coverage. It is not perfect. I looked a bit into Astro testing and it gets a bit complex. But, it gets us pretty far. And this shows the problems I saw in GH-5052. After this lands, I can verify that GH-5052 improves things. Closes GH-5060.
1 parent e318e8e commit e6d9980

File tree

3 files changed

+1161
-2
lines changed

3 files changed

+1161
-2
lines changed

arcjet-astro/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747
"build": "rollup --config rollup.config.js",
4848
"lint": "eslint .",
4949
"prepublishOnly": "npm run build",
50-
"test": "npm run build && npm run lint"
50+
"test-api": "node --test",
51+
"test-coverage": "node --experimental-test-coverage --test",
52+
"test": "npm run build && npm run lint && npm run test-coverage"
5153
},
5254
"dependencies": {
5355
"@arcjet/env": "1.0.0-beta.11",

0 commit comments

Comments
 (0)