{"name":"esmocha","version":"5.0.0","keywords":["mocha","typescript","esbuild","mock","expect","snapshot","jest-snapshot","jest-mock"],"homepage":"https://github.com/mshima/esmocha","bugs":{"url":"https://github.com/mshima/esmocha/issues"},"repository":{"type":"git","url":"git://github.com/mshima/esmocha.git"},"author":{"name":"Marcelo Shima","url":"https://github.com/mshima"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mocha":{"default":"./dist/mocha.cjs"}},"main":"./dist/index.js","types":"./dist/index.d.ts","bin":{"esmocha":"dist/bin.cjs"},"scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy bin.cjs ../dist --cwd=src","prepare":"npm run build","pretest":"npm run build","test":"node dist/bin.cjs"},"dependencies":{"@types/mocha":"^10.0.10","jest-mock":"^30.2.0","mocha-expect-snapshot":"^8.0.0","quibble":"^0.9.2","stack-utils":"^2.0.6"},"devDependencies":{"@node-loaders/esbuild":"^2.0.0","@types/node":"^25.0.1","cpy-cli":"^4.2.0","prettier":"3.7.4","prettier-plugin-packagejson":"^2.5.20","rimraf":"^6.1.2","typescript":"^5.9.3","xo":"1.2.3"},"peerDependencies":{"@node-loaders/esbuild":"^2.0.0","mocha":"^11.7.1"},"peerDependenciesMeta":{"@node-loaders/esbuild":{"optional":true}},"engines":{"node":"^18.19.0 || ^20.9.0 || ^22.0.0 || >=24.0.0"},"gitHead":"9f6772004020d89ff8991f06e3d446a17145c601","_id":"esmocha@5.0.0","description":"[Mocha](https://mochajs.org) wrapper with built-in [typescript](https://github.com/node-loaders/loaders/tree/main/workspaces/esbuild), built-in [expect](https://jestjs.io/docs/expect) with [mock](https://github.com/node-loaders/loaders/tree/main/workspace","_nodeVersion":"22.21.1","_npmVersion":"11.6.3","dist":{"integrity":"sha512-FbQdnik6r0GQyEmmIrmFK+TKHDfxJIHjMj8XtCymBocIfeuu00zEeQ+jSEhksMZHh1fpn7Ds9/47akJNgxoI0g==","shasum":"1653938203f4f69de2c4c998b37492f9a094fb9b","tarball":"http://registry-npm.ywwl.com/esmocha/download/esmocha-5.0.0.tgz","fileCount":15,"unpackedSize":14703,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID7VWZdjnvtnuoi1JJeTEZqfDExF8kCHvGTkaj3OehEyAiEA88jm186mkjAOZr9skaXn/TgQe4GbfC9lJQuYx3utUfM="}],"size":4843,"noattachment":false,"key":"/esmocha/-/esmocha-5.0.0.tgz"},"_npmUser":{"name":"mshima","email":"marceloshima@gmail.com"},"directories":{},"maintainers":[{"name":"mshima","email":"marceloshima@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/esmocha_5.0.0_1765591871152_0.7139519634996545"},"_hasShrinkwrap":false,"readme":"# esmocha\n\n[Mocha](https://mochajs.org) wrapper with built-in [typescript](https://github.com/node-loaders/loaders/tree/main/workspaces/esbuild), built-in [expect](https://jestjs.io/docs/expect) with [mock](https://github.com/node-loaders/loaders/tree/main/workspaces/jest-mock) and [snapshot](https://github.com/mshima/mocha-expect-snapshot) support.\n\n## Usage\n\n```sh\nnpm install esmocha --save-dev\n```\n\n`esmocha` executable is a wrapper for `mocha` executable, every option should work.\n\n```sh\nnpx esmocha\n```\n\nEvery method is re-exported.\n\n```js\n// expect lib\nimport { expect } from 'esmocha';\n// mocking lib\nimport { mock, resetAllMocks } from 'esmocha';\n// mocha lib\nimport { afterAll, beforeAll } from 'esmocha';\n```\n\nUpdating expect snapshots:\n\n```\nnpx esmocha --update-snapshot\n```\n\n## License\n\nMIT\n","publish_time":1765591871297,"_cnpm_publish_time":1765591871297,"dist-tags":{"latest":"5.0.0"}}