{"_id":"@cprussin/jest-runner-prettier","name":"@cprussin/jest-runner-prettier","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cprussin/jest-runner-prettier","version":"1.0.0","type":"module","description":"A prettier runner for Jest","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/keplersj/jest-runner-prettier.git"},"author":{"name":"Kepler Sticka-Jones","email":"kepler@stickajones.org"},"funding":{"type":"github-sponsors","url":"https://github.com/sponsors/keplersj"},"license":"MIT","private":false,"scripts":{"build":"tsc","test":"npm run build; node --experimental-vm-modules node_modules/jest/bin/jest.js","prepack":"npm run build","prepare":"husky install"},"lint-staged":{"*":"node --experimental-vm-modules node_modules/jest/bin/jest.js --bail --findRelatedTests"},"release":{"verifyConditions":"@semantic-release/github"},"dependencies":{"create-lite-jest-runner":"^1.0.2","emphasize":"^5.0.0","jest-diff":"^29.0.0"},"peerDependencies":{"jest":">= 27.0.0","prettier":">= 3.0.0"},"devDependencies":{"@commitlint/cli":"^17.2.0","@commitlint/config-conventional":"^17.2.0","@types/jest":"^29.2.2","@types/node":"^18.11.9","eslint":"^8.27.0","eslint-config-starstuff":"^1.5.14","husky":"^8.0.2","jest":"^29.3.1","jest-runner":"^29.3.1","jest-runner-eslint":"^1.1.0","lint-staged":"^13.0.3","prettier":"^3.0.0","ts-jest":"^29.0.3","typescript":"^4.8.4"},"eslintConfig":{"extends":"starstuff/auto","env":{"node":true}},"commitlint":{"extends":["@commitlint/config-conventional"]},"types":"./dist/index.d.ts","gitHead":"56d963ebf857f9c4ff047d0bcb408998a82b17eb","bugs":{"url":"https://github.com/keplersj/jest-runner-prettier/issues"},"homepage":"https://github.com/keplersj/jest-runner-prettier#readme","_id":"@cprussin/jest-runner-prettier@1.0.0","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-VisB2zjxP2mbpUhNzvwDu3rYpe2okPU1gLeP2CLU4tv1V9HM1CcTHUk+oxx+2tVt7B+cttNKGnWCSsBZLjQgbw==","shasum":"f017cee43580e9544814eed07e63515f4a695447","tarball":"https://registry.npmjs.org/@cprussin/jest-runner-prettier/-/jest-runner-prettier-1.0.0.tgz","fileCount":33,"unpackedSize":49475,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5Y7luwdwlcTTijevVL41R7GK/W8jI1TgZBLZHu+18DQIgMxiE4WDMrT+pwBnqOBiyVIi0X03jmvFskLILK83Avgg="}]},"_npmUser":{"name":"cprussin","email":"connor@prussin.net"},"directories":{},"maintainers":[{"name":"cprussin","email":"connor@prussin.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-runner-prettier_1.0.0_1692551454397_0.6277387122626157"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-20T17:10:54.288Z","1.0.0":"2023-08-20T17:10:54.584Z","modified":"2023-08-20T17:10:54.866Z"},"maintainers":[{"name":"cprussin","email":"connor@prussin.net"}],"description":"A prettier runner for Jest","homepage":"https://github.com/keplersj/jest-runner-prettier#readme","repository":{"type":"git","url":"git+https://github.com/keplersj/jest-runner-prettier.git"},"author":{"name":"Kepler Sticka-Jones","email":"kepler@stickajones.org"},"bugs":{"url":"https://github.com/keplersj/jest-runner-prettier/issues"},"license":"MIT","readme":"[![npm](https://img.shields.io/npm/v/jest-runner-prettier)](https://www.npmjs.com/package/jest-runner-prettier)\n[![npm](https://img.shields.io/npm/dw/jest-runner-prettier)](https://www.npmjs.com/package/jest-runner-prettier)\n[![Codecov](https://img.shields.io/codecov/c/github/keplersj/jest-runner-prettier)](https://app.codecov.io/gh/keplersj/jest-runner-prettier)\n[![Bundle Size](https://img.shields.io/bundlephobia/min/jest-runner-prettier)](https://bundlephobia.com/package/jest-runner-prettier)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://www.conventionalcommits.org/)\n[![Mentioned in Awesome Jest](https://awesome.re/mentioned-badge.svg)](https://github.com/jest-community/awesome-jest)\n\n<div align=\"center\">\n  <!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->\n  <img width=\"150\" height=\"150\" src=\"https://github.com/prettier/prettier-logo/raw/master/images/prettier-icon-light.png\">\n  <a href=\"https://facebook.github.io/jest/\">\n    <img width=\"150\" height=\"150\" vspace=\"\" hspace=\"25\" src=\"https://user-images.githubusercontent.com/2440089/37489554-6f776bd2-286e-11e8-862f-cb6c398cf752.png\">\n  </a>\n  <h1>jest-runner-prettier</h1>\n  <p>Prettier runner for Jest</p>\n</div>\n\n<div align=\"center\">\n  <!--<img src=\"https://user-images.githubusercontent.com/574806/30197438-9681385c-941c-11e7-80a8-2b11f15bd412.gif\">-->\n  <!-- TODO: Create GIF showing off runner -->\n</div>\n\n## Usage\n\n### Install\n\nInstall `jest`, `prettier` and `jest-runner-prettier`\n\n```bash\nyarn add --dev jest prettier jest-runner-prettier\n\n# or with NPM\n\nnpm install --save-dev jest prettier jest-runner-prettier\n```\n\n### Add it to your Jest config\n\n#### Using Built-in Preset\n\nThis package includes a [Jest preset](https://jestjs.io/docs/en/configuration#preset-string) which configures Jest to run Prettier on all files supported by Prettier. To use it set the following in your `package.json`:\n\n```json\n{\n  \"jest\": {\n    \"preset\": \"jest-runner-prettier\"\n  }\n}\n```\n\nor `jest.config.js`:\n\n```js\nmodule.exports = {\n  preset: \"jest-runner-prettier\",\n};\n```\n\n#### Manually\n\nIn your `package.json`\n\n```json\n{\n  \"jest\": {\n    \"runner\": \"prettier\",\n    \"moduleFileExtensions\": [\n      \"js\",\n      \"mjs\",\n      \"jsx\",\n      \"vue\",\n      \"ts\",\n      \"tsx\",\n      \"css\",\n      \"less\",\n      \"scss\",\n      \"html\",\n      \"json\",\n      \"graphql\",\n      \"md\",\n      \"markdown\",\n      \"mdx\",\n      \"yaml\",\n      \"yml\"\n    ],\n    \"testMatch\": [\n      \"**/*.js\",\n      \"**/*.mjs\",\n      \"**/*.jsx\",\n      \"**/*.vue\",\n      \"**/*.ts\",\n      \"**/*.tsx\",\n      \"**/*.css\",\n      \"**/*.less\",\n      \"**/*.scss\",\n      \"**/*.html\",\n      \"**/*.json\",\n      \"**/*.graphql\",\n      \"**/*.md\",\n      \"**/*.markdown\",\n      \"**/*.mdx\",\n      \"**/*.yaml\",\n      \"**/*.yml\"\n    ]\n  }\n}\n```\n\nOr in `jest.config.js`\n\n```js\nmodule.exports = {\n  runner: \"prettier\",\n  moduleFileExtensions: [\n    \"js\",\n    \"mjs\",\n    \"jsx\",\n    \"vue\",\n    \"ts\",\n    \"tsx\",\n    \"css\",\n    \"less\",\n    \"scss\",\n    \"html\",\n    \"json\",\n    \"graphql\",\n    \"md\",\n    \"markdown\",\n    \"mdx\",\n    \"yaml\",\n    \"yml\",\n  ],\n  testMatch: [\n    \"**/*.js\",\n    \"**/*.mjs\",\n    \"**/*.jsx\",\n    \"**/*.vue\",\n    \"**/*.ts\",\n    \"**/*.tsx\",\n    \"**/*.css\",\n    \"**/*.less\",\n    \"**/*.scss\",\n    \"**/*.html\",\n    \"**/*.json\",\n    \"**/*.graphql\",\n    \"**/*.md\",\n    \"**/*.markdown\",\n    \"**/*.mdx\",\n    \"**/*.yaml\",\n    \"**/*.yml\",\n  ],\n};\n```\n\n### Run Jest\n\n```bash\nnpx jest\n\n# or, with yarn\n\nyarn jest\n```\n\n## License\n\nCopyright [Kepler Sticka-Jones](https://keplersj.com) 2017-2022. Licensed MIT.\n","readmeFilename":"README.md"}