diff --git a/package.json b/package.json index 9dc18d7..fcfb0a9 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,11 @@ "build:types": "npm run build:copy && cd dist && tsc --build", "check": "tsc --build --noErrorTruncation", "publish": "npm_config_yes=true ipjs publish", - "test:cjs": "npm run build && mocha dist/cjs/node-test/test-*.js", + "test:cjs": "npm run build && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser", "test:node": "hundreds mocha test/test-*.js", - "test:browser": "polendina --cleanup dist/cjs/node-test/test-*.js", - "test": "npm run lint && npm run test:node && npm run test:cjs && npm run test:browser", + "test:cjs:browser": "polendina --cleanup dist/cjs/node-test/test-*.js", + "test:ts": "npm run build:types && npm run test --prefix test/ts-use", + "test": "npm run lint && npm run test:node && npm run test:cjs && npm run test:ts", "coverage": "c8 --reporter=html mocha test/test-*.js && npx st -d coverage -p 8080" }, "exports": {