Skip to content

Commit e5cb869

Browse files
committed
test: fix snapshot
1 parent c4735a8 commit e5cb869

2 files changed

Lines changed: 46 additions & 1309 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
"default": "./dist/index.js"
2323
},
2424
"scripts": {
25-
"prepublishOnly": "npm run clean && npm run test && npm run build",
25+
"prepublishOnly": "pnpm run clean && pnpm run test && pnpm run build",
2626
"clean": "premove ./dist ./test/temp",
2727
"build": "SWC_NODE_PROJECT=./tsconfig.json node -r @swc-node/register tools/build.ts",
2828
"test": "SWC_NODE_PROJECT=./tsconfig.json mocha -r @swc-node/register test/index.ts",
29+
"test:update": "UPDATE_SNAPSHOTS=true SWC_NODE_PROJECT=./tsconfig.json mocha -r @swc-node/register test/index.ts",
2930
"lint": "eslint --format sukka ."
3031
},
3132
"author": "",

0 commit comments

Comments
 (0)