Skip to content

Commit 383988f

Browse files
committed
test: test in dev and non-dev mode
This library provides two modes: dev and default (non-dev) modes. The dev mdoe is emabeld when the `development` condition is set or when `NODE_ENV` is set to `development`. Prerviously, only the dev mode was tested. We now test both thed ev and non-dev mode. This allowd to identify some robustness bugs related to non-canonical encoding. See the `FIXME` comments.
1 parent c2467c1 commit 383988f

4 files changed

Lines changed: 1075 additions & 701 deletions

File tree

‎package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
"format": "biome check --linter-enabled=false --write .",
6565
"lint": "biome lint --error-on-warnings .",
6666
"prepublishOnly": "npm run clean && npm run build && npm test",
67-
"test": "NODE_ENV=development node --test && npm run check",
67+
"test": "npm run test:dev && npm run test:prod",
68+
"test:dev": "NODE_ENV=development node --test && npm run check",
69+
"test:prod": "node --test && npm run check",
6870
"version": "sh ./scripts/version.sh"
6971
},
7072
"devDependencies": {

0 commit comments

Comments
 (0)