msw
v2.4.9 api mock mocking worker prototype server service handler testing and 3 more...
lint
eslint "{cli,src}/**/*.ts"
test
pnpm test:unit && pnpm test:node && pnpm test:browser && pnpm test:native
build
pnpm clean && cross-env NODE_ENV=production tsup && pnpm patch:dts
clean
rimraf ./lib
start
tsup --watch
release
release publish
test:ts
vitest --typecheck --config=./test/typings/vitest.config.mts
patch:dts
node "./config/scripts/patch-ts.js"
test:node
vitest run --config=./test/node/vitest.config.mts
test:unit
vitest
postinstall
node -e "try{require('./config/scripts/postinstall')}catch(e){}"
test:native
vitest --config=./test/native/vitest.config.mts
test:browser
playwright test -c ./test/browser/playwright.config.ts
check:exports
node "./config/scripts/validate-esm.js"
test:modules:node
vitest --config=./test/modules/node/vitest.config.mts
test:modules:browser
playwright test -c ./test/modules/browser/playwright.config.ts
npm i [email protected]
Metadata
- MIT
- >=18
- Artem Zakharchenko
- released 9/20/2024