{"name":"esmocha","version":"3.0.0","keywords":["mocha","typescript","esbuild","mock","expect","snapshot","jest-snapshot","jest-mock"],"author":{"url":"https://github.com/mshima","name":"Marcelo Shima"},"_id":"esmocha@3.0.0","maintainers":[{"name":"mshima","email":"marceloshima@gmail.com"}],"homepage":"https://github.com/mshima/esmocha","bugs":{"url":"https://github.com/mshima/esmocha/issues"},"bin":{"esmocha":"dist/bin.cjs"},"dist":{"shasum":"cd362c891e5fbea5fdc4a1ee6e75a48105e7d7e9","tarball":"http://registry-npm.ywwl.com/esmocha/download/esmocha-3.0.0.tgz","fileCount":15,"integrity":"sha512-8RRbGJ0gQ5hPopHZvw8LfVOfwfHVRSukSiZpRQ9YWKiKVcqZTfsfNguAs5yLV1f5FqECsqIurVi3VVGGBmCwbA==","signatures":[{"sig":"MEUCIQCOXSn7Vn7OZ+wzmizVP+BNYIBL6xB9C9wFxJrTll9kcgIgG0TTz7lIjYLiYjbPuNXPREHTr5RKMem6VvFsNma/0w8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14586,"size":4883,"noattachment":false,"key":"/esmocha/-/esmocha-3.0.0.tgz"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":"^18.19.0 || ^20.9.0 || >=21.1.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mocha":{"default":"./dist/mocha.cjs"}},"gitHead":"81557f160449cc8fa699efd7719f2cf17c59389c","scripts":{"test":"node dist/bin.cjs","build":"tsc","prepare":"npm run build","pretest":"npm run build","prebuild":"rimraf dist","postbuild":"cpy bin.cjs ../dist --cwd=src"},"_npmUser":{"name":"mshima","email":"marceloshima@gmail.com"},"repository":{"url":"git://github.com/mshima/esmocha.git","type":"git"},"_npmVersion":"10.8.2","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","directories":{},"_nodeVersion":"18.20.5","dependencies":{"quibble":"^0.9.2","jest-mock":"^29.7.0","stack-utils":"^2.0.6","@types/mocha":"^10.0.10","@node-loaders/esbuild":"^2.0.0","mocha-expect-snapshot":"^7.1.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.54.2","rimraf":"^5.0.5","cpy-cli":"^4.2.0","typescript":"^5.2.2","@types/node":"^18.18.6","prettier-plugin-packagejson":"^2.4.6"},"peerDependencies":{"mocha":"^11.0.1"},"_npmOperationalInternal":{"tmp":"tmp/esmocha_3.0.0_1733512047530_0.7104503469023227","host":"s3://npm-registry-packages"},"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":1733512047688,"_cnpm_publish_time":1733512047688,"dist-tags":{"latest":"5.0.0"}}