{"name":"babel-jest","version":"30.0.0-beta.3","license":"MIT","_id":"babel-jest@30.0.0-beta.3","maintainers":[{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"aaronabramov","email":"aaron@abramov.io"},{"name":"openjs-operations","email":"operations@openjsf.org"}],"dist":{"shasum":"89c7daaebf9436dd6d0ed4a133dd4bc61e32e0ef","tarball":"http://registry-npm.ywwl.com/babel-jest/download/babel-jest-30.0.0-beta.3.tgz","fileCount":6,"integrity":"sha512-h7VooBet0MbW4KuDxLY38sD3VrX6ugyePeA6vKnAx0ncYDRJwGfa/ZFZtl0e4JQ7jyby4qPV9c8BMfsKOR1Big==","signatures":[{"sig":"MEUCIGHKU81ATNX0Vqj9fxFlwAq2mZErzlkX4ZAyWSS1o/XCAiEAx1o3cYjusXBPivo8VOouvv+42pTp7/E5Fz8Kv/zc89c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15077,"size":4719,"noattachment":false,"key":"/babel-jest/-/babel-jest-30.0.0-beta.3.tgz"},"main":"./build/index.js","types":"./build/index.d.ts","engines":{"node":"^18.14.0 || ^20.0.0 || >=22.0.0"},"exports":{".":{"types":"./build/index.d.ts","import":"./build/index.mjs","default":"./build/index.js","require":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"a123a3b667a178fb988662aaa1bc6308af759017","_npmUser":{"name":"cpojer","email":"christoph.pojer@gmail.com"},"repository":{"url":"https://github.com/jestjs/jest.git","type":"git","directory":"packages/babel-jest"},"_npmVersion":"lerna/3.12.3/node@v23.11.0+arm64 (darwin)","description":"Jest plugin to use babel for transformation.","directories":{},"_nodeVersion":"23.11.0","dependencies":{"chalk":"^4.0.0","slash":"^3.0.0","graceful-fs":"^4.2.9","@jest/transform":"30.0.0-beta.3","babel-preset-jest":"30.0.0-beta.3","@types/babel__core":"^7.1.14","babel-plugin-istanbul":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/core":"^7.11.6","@jest/test-utils":"30.0.0-beta.3","@types/graceful-fs":"^4.1.3"},"peerDependencies":{"@babel/core":"^7.11.0"},"_npmOperationalInternal":{"tmp":"tmp/babel-jest_30.0.0-beta.3_1748309273982_0.12008267395419692","host":"s3://npm-registry-packages-npm-production"},"readme":"# babel-jest\n\n[Babel](https://github.com/babel/babel) [jest](https://github.com/jestjs/jest) plugin\n\n## Usage\n\nIf you are already using `jest-cli`, add `babel-jest` and it will automatically compile JavaScript code using Babel.\n\n```bash\nyarn add --dev babel-jest @babel/core\n```\n\nIf you would like to write your own preprocessor, uninstall and delete babel-jest and set the [config.transform](https://jestjs.io/docs/configuration#transform-object-string-string) option to your preprocessor.\n\n## Setup\n\n_Note: this step is only required if you are using `babel-jest` with additional code preprocessors._\n\nTo explicitly define `babel-jest` as a transformer for your JavaScript code, map _.js_ files to the `babel-jest` module. Typescript files are also supported.\n\nBy default, it loads your existing Babel configuration (if any)\n\n```json\n\"transform\": {\n  \"\\\\.[jt]sx?$\": \"babel-jest\"\n},\n```\n\nYou can also pass further [babel options](https://babeljs.io/docs/options)\n\n```json\n\"transform\": {\n  \"\\\\.[jt]sx?$\": [\"babel-jest\", { \"extends\": \"./babel.config.js\", \"plugins\": [\"babel-plugin-transform-import-meta\"] }]\n},\n```\n\nBy default, `babel-jest` includes `babel-preset-jest`. In addition to the babel options, we introduce a new option, `excludeJestPreset`, which allows you to disable this behavior. Note that this will break `jest.mock` hoisting.\n\n```json\n\"transform\": {\n  \"\\\\.[jt]sx?$\": [\"babel-jest\", { \"excludeJestPreset\": true }],\n}\n```\n","publish_time":1748309274166,"_cnpm_publish_time":1748309274166,"dist-tags":{"latest":"30.5.2","next":"30.0.0-rc.1"}}