{"_id":"vscode-jest","_rev":"4-a0dd6ccf65107b865cb6b39dc115f591","name":"vscode-jest","description":"Use Facebook's Jest With Pleasure.","dist-tags":{"latest":"2.9.1"},"versions":{"2.4.3":{"name":"vscode-jest","displayName":"Jest","description":"Use Facebook's Jest With Pleasure.","version":"2.4.3","publisher":"Orta","engines":{"vscode":"^1.12.0"},"author":{"name":"Orta Therox","url":"http://orta.io"},"repository":{"type":"git","url":"git+https://github.com/orta/vscode-jest.git"},"galleryBanner":{"theme":"light","color":"#ca461a"},"categories":["Other"],"activationEvents":["workspaceContains:node_modules/.bin/jest","workspaceContains:node_modules/react-scripts/node_modules/.bin/jest","onCommand:io.orta.jest.start"],"main":"./out/src/extension","icon":"images/vscode-jest.png","contributes":{"languages":[{"id":"jest-snapshot","extensions":[".js.snap",".jsx.snap",".ts.snap",".tsx.snap"]}],"grammars":[{"language":"jest-snapshot","scopeName":"source.jest.snap","path":"./syntaxes/jest-snapshot.tmLanguage"}],"configuration":{"type":"object","title":"Jest configuration","properties":{"jest.autoEnable":{"description":"Automatically starting Jest for this project.","type":"boolean","default":true},"jest.pathToJest":{"description":"The path to the Jest binary, or an npm command to run tests prefixed with `--` e.g. `npm test --`","type":"string","default":"node_modules/.bin/jest"},"jest.pathToConfig":{"description":"The path to your Jest configuration file","type":"string","default":""},"jest.rootPath":{"description":"The path to your frontend src folder","type":"string","default":""},"jest.enableInlineErrorMessages":{"description":"Whether errors should be reported inline on a file","type":"boolean","default":true},"jest.enableSnapshotUpdateMessages":{"description":"Whether snapshot update messages should show","type":"boolean","default":true}}},"commands":[{"command":"io.orta.jest.start","title":"Jest: Start Runner"},{"command":"io.orta.jest.stop","title":"Jest: Stop Runner"},{"command":"io.orta.jest.show-channel","title":"Jest: Show Test Output Channel"},{"command":"io.orta.jest.coverage.toggle","title":"Jest: Toggle Coverage Overlay"}]},"lint-staged":{"*.json":["npm run prettier-write --","git add"],"*.ts":["npm run prettier-write --","git add"]},"scripts":{"precommit":"lint-staged","ci":"yarn lint && yarn test","clean-out":"rimraf ./out","vscode:prepublish":"yarn clean-out && tsc -p ./tsconfig.publish.json","compile":"tsc -watch -p ./tsconfig.publish.json","lint":"node scripts/lint","postinstall":"node ./node_modules/vscode/bin/install","test":"jest --config jest.json","watch-test":"yarn test -- --watch","prettier":"prettier","prettier-write":"npm run prettier -- --parser typescript --no-semi --single-quote --trailing-comma es5 --write --print-width 120","prettier-project":"npm run prettier-write -- '?(__mocks__|src|tests)/**/*.ts'"},"devDependencies":{"@types/jest":"^21.1.1","@types/node":"^8.0.31","glob":"^7.1.1","husky":"^0.14.3","jest":"^21.2.0","lint-staged":"^4.2.3","prettier":"^1.7.3","rimraf":"^2.6.2","tslint":"^5.7.0","tslint-config-prettier":"^1.5.0","typescript":"2.5.3","vscode":"^1.1.5","vsce":"^1.31"},"dependencies":{"elegant-spinner":"^1.0.1","istanbul-lib-coverage":"^1.1.1","istanbul-lib-source-maps":"^1.1.0","jest-editor-support":"21.3.0-alpha.eff7a1cf","jest-snapshot":"21.3.0-alpha.eff7a1cf","jest-test-typescript-parser":"21.3.0-alpha.eff7a1cf","micromatch":"^2.3.11"},"gitHead":"b5eaf7c06097a0b2873ac645e03117dd1b4fed64","bugs":{"url":"https://github.com/orta/vscode-jest/issues"},"homepage":"https://github.com/orta/vscode-jest#readme","_id":"vscode-jest@2.4.3","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"orta","email":"orta.therox@gmail.com"},"dist":{"integrity":"sha512-gOrpj6rM1OwjQI+POR83s0z/XMwmmIWps5eyqkRvAJKM+HVmqPLn82Mz2W6W34pVo3yOT57wEI4HMP6bQuvp2Q==","shasum":"d439cb0acad05dea1ee5ac7fc868651d8c2e7eaf","tarball":"https://registry.npmjs.org/vscode-jest/-/vscode-jest-2.4.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACAq3dppmcfLkjoSSLCdgq6NFRI9NyFs4YVaAwG7zdvAiBolvUCSd7RYRoGJHdOe1nOFHP1d/VxIl2b5Lj2w9FYXQ=="}]},"maintainers":[{"name":"orta","email":"orta.therox@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vscode-jest-2.4.3.tgz_1509807528228_0.1941887775901705"},"directories":{}},"2.6.1":{"name":"vscode-jest","displayName":"Jest","description":"Use Facebook's Jest With Pleasure.","version":"2.6.1","publisher":"Orta","engines":{"vscode":"^1.18.0"},"author":{"name":"Orta Therox","url":"http://orta.io"},"repository":{"type":"git","url":"git+https://github.com/jest-community/vscode-jest.git"},"galleryBanner":{"theme":"light","color":"#ca461a"},"categories":["Other"],"activationEvents":["workspaceContains:jest.config.js","workspaceContains:jest.json","workspaceContains:node_modules/.bin/jest","workspaceContains:node_modules/react-scripts/node_modules/.bin/jest","workspaceContains:node_modules/react-native-scripts","onCommand:io.orta.jest.start"],"main":"./out/src/extension","icon":"images/vscode-jest.png","contributes":{"languages":[{"id":"jest-snapshot","extensions":[".js.snap",".jsx.snap",".ts.snap",".tsx.snap"]}],"grammars":[{"language":"jest-snapshot","scopeName":"source.jest.snap","path":"./syntaxes/jest-snapshot.tmLanguage"}],"configuration":{"type":"object","title":"Jest configuration","properties":{"jest.autoEnable":{"description":"Automatically start Jest for this project","type":"boolean","default":true},"jest.pathToJest":{"description":"The path to the Jest binary, or an npm command to run tests prefixed with `--` e.g. `npm test --`","type":"string","default":"node_modules/.bin/jest"},"jest.pathToConfig":{"description":"The path to your Jest configuration file","type":"string","default":""},"jest.rootPath":{"description":"The path to your frontend src folder","type":"string","default":""},"jest.enableInlineErrorMessages":{"description":"Whether errors should be reported inline on a file","type":"boolean","default":true},"jest.enableSnapshotUpdateMessages":{"description":"Whether snapshot update messages should show","type":"boolean","default":true},"jest.runAllTestsFirst":{"description":"Run all tests before starting Jest in watch mode","type":"boolean","default":true},"jest.showCoverageOnLoad":{"description":"Show code coverage when extension starts (if collected)","type":"boolean","default":false},"jest.enableCodeLens":{"description":"Whether codelens for debugging should show","type":"boolean","default":true},"jest.enableSnapshotPreviews":{"description":"Whether snapshot previews should show","type":"boolean","default":true}}},"commands":[{"command":"io.orta.jest.start","title":"Jest: Start Runner"},{"command":"io.orta.jest.stop","title":"Jest: Stop Runner"},{"command":"io.orta.jest.show-channel","title":"Jest: Show Test Output Channel"},{"command":"io.orta.jest.coverage.toggle","title":"Jest: Toggle Coverage Overlay"}]},"lint-staged":{"*.json":["yarn prettier-write --","git add"],"*.ts":["yarn prettier-write --","git add"]},"scripts":{"precommit":"lint-staged","ci":"yarn lint && yarn test","clean-out":"rimraf ./out","vscode:prepublish":"yarn clean-out && tsc -p ./tsconfig.publish.json","compile":"tsc -watch -p ./tsconfig.publish.json","lint":"node scripts/lint","postinstall":"node ./node_modules/vscode/bin/install","test":"jest --config jest.json","watch-test":"yarn test -- --watch","prettier":"prettier","prettier-write":"yarn prettier -- --parser typescript --no-semi --single-quote --trailing-comma es5 --write --print-width 120","prettier-project":"yarn prettier-write -- '?(__mocks__|src|tests)/**/*.ts'"},"devDependencies":{"@types/jest":"^21.1.1","@types/node":"^8.0.31","danger":"^2","glob":"^7.1.1","husky":"^0.14.3","jest":"^21.2.0","lint-staged":"^4.2.3","prettier":"^1.7.3","rimraf":"^2.6.2","tslint":"^5.7.0","tslint-config-prettier":"^1.5.0","typescript":"2.5.3","vscode":"^1.1.6"},"dependencies":{"elegant-spinner":"^1.0.1","istanbul-lib-coverage":"^1.1.1","istanbul-lib-source-maps":"^1.1.0","jest-editor-support":"^22.0.4","jest-snapshot":"^22.0.3","jest-test-typescript-parser":"^22.0.4","micromatch":"^2.3.11"},"gitHead":"2b93f7366d6e1cf897fa72a1b771db70032602f0","bugs":{"url":"https://github.com/jest-community/vscode-jest/issues"},"homepage":"https://github.com/jest-community/vscode-jest#readme","_id":"vscode-jest@2.6.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"orta","email":"orta.therox@gmail.com"},"dist":{"integrity":"sha512-294slyVsRJs765DNq2YemIH3oCbc8dnD+OWBWa0rsCT97TfHauN3sQkO7dav88oALM66jNzkYx9b8RkQRHfMDw==","shasum":"3d47bdc8e9d2f1de96cb5ca0434c1f299e8a6bb6","tarball":"https://registry.npmjs.org/vscode-jest/-/vscode-jest-2.6.1.tgz","fileCount":91,"unpackedSize":2875222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9cfz4K79jhH4aXV+BManoFIN3xkDrUMM+cZfWtTo6aAiEA2CdWypsKx/J42k2/cERGuYlqhAKgW1ljgORs/4HDytU="}]},"maintainers":[{"name":"orta","email":"orta.therox@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vscode-jest_2.6.1_1518563248338_0.44455037841000467"},"_hasShrinkwrap":false},"2.9.1":{"name":"vscode-jest","displayName":"Jest","description":"Use Facebook's Jest With Pleasure.","version":"2.9.1","publisher":"Orta","engines":{"vscode":"^1.18.0"},"author":{"name":"Orta Therox, ConnectDotz & Sean Poulter","url":"https://github.com/jest-community/vscode-jest"},"repository":{"type":"git","url":"git+https://github.com/jest-community/vscode-jest.git"},"galleryBanner":{"theme":"light","color":"#ca461a"},"categories":["Other"],"activationEvents":["workspaceContains:jest.config.js","workspaceContains:jest.json","workspaceContains:node_modules/.bin/jest","workspaceContains:node_modules/react-scripts/node_modules/.bin/jest","workspaceContains:node_modules/react-native-scripts","onCommand:io.orta.jest.start"],"main":"./out/src/extension","icon":"images/vscode-jest.png","contributes":{"languages":[{"id":"jest-snapshot","extensions":[".js.snap",".jsx.snap",".ts.snap",".tsx.snap"]}],"grammars":[{"language":"jest-snapshot","scopeName":"source.jest.snap","path":"./syntaxes/jest-snapshot.tmLanguage"}],"configuration":{"type":"object","title":"Jest configuration","properties":{"jest.autoEnable":{"description":"Automatically start Jest for this project","type":"boolean","default":true},"jest.pathToJest":{"description":"The path to the Jest binary, or an npm command to run tests prefixed with `--` e.g. `node_modules/.bin/jest` or `npm test --`","type":"string","default":null},"jest.pathToConfig":{"description":"The path to your Jest configuration file","type":"string","default":""},"jest.rootPath":{"description":"The path to your frontend src folder","type":"string","default":""},"jest.enableInlineErrorMessages":{"description":"Whether errors should be reported inline on a file","type":"boolean","default":true},"jest.enableSnapshotUpdateMessages":{"description":"Whether snapshot update messages should show","type":"boolean","default":true},"jest.runAllTestsFirst":{"description":"Run all tests before starting Jest in watch mode","type":"boolean","default":true},"jest.showCoverageOnLoad":{"description":"Show code coverage when extension starts (if collected)","type":"boolean","default":false},"jest.coverageFormatter":{"description":"Coverage formatter to use","type":"string","enum":["DefaultFormatter","GutterFormatter"],"default":"DefaultFormatter"},"jest.enableCodeLens":{"description":"Whether codelens for debugging should show","type":"boolean","default":true},"jest.debugCodeLens.showWhenTestStateIn":{"description":"Show the debug CodeLens when the it/test block state is in this collection","type":"array","items":{"enum":["fail","pass","skip","unknown"]},"default":["fail","unknown"]},"jest.enableSnapshotPreviews":{"description":"Whether snapshot previews should show","type":"boolean","default":true},"jest.restartJestOnSnapshotUpdate":{"description":"Restart Jest runner after updating the snapshots","type":"boolean","default":false},"jest.debugMode":{"description":"Enable debug mode to diagnose plugin issues. (see developer console)","type":"boolean","default":false}}},"commands":[{"command":"io.orta.jest.start","title":"Jest: Start Runner"},{"command":"io.orta.jest.stop","title":"Jest: Stop Runner"},{"command":"io.orta.jest.show-channel","title":"Jest: Show Test Output Channel"},{"command":"io.orta.jest.coverage.toggle","title":"Jest: Toggle Coverage Overlay"}],"debuggers":[{"type":"vscode-jest-tests","label":"Debug Jest tests using vscode-jest","languages":["javascript","javascriptreact","typescript","typescriptreact"],"configurationSnippets":[{"label":"Jest:  Default jest configuration","description":"Running tests by directly running jest","body":{"type":"node","name":"vscode-jest-tests","request":"launch","program":"^\"\\${workspaceFolder}/node_modules/jest/bin/jest\"","args":["--runInBand"],"cwd":"^\"\\${workspaceFolder}\"","console":"integratedTerminal","internalConsoleOptions":"neverOpen"}},{"label":"Jest: create-react-app","description":"Running jest within apps bootstrapped by create-react-app (and similar); you may have to edit `runtimeExecutable`","body":{"type":"node","name":"vscode-jest-tests","request":"launch","runtimeExecutable":"^\"\\${workspaceFolder}/node_modules/.bin/react-scripts\"","args":["test","--env=jsdom","--runInBand"],"cwd":"^\"\\${workspaceFolder}\"","console":"integratedTerminal","protocol":"inspector","internalConsoleOptions":"neverOpen"}},{"label":"Jest: create-react-app (ejected)","description":"Running jest within apps bootstrapped by create-react-app (and similar) after ejecting","body":{"type":"node","name":"vscode-jest-tests","request":"launch","program":"^\"\\${workspaceFolder}/scripts/test\"","args":["--env=jsdom","--runInBand"],"cwd":"^\"\\${workspaceFolder}\"","console":"integratedTerminal","protocol":"inspector","internalConsoleOptions":"neverOpen"}}]}]},"lint-staged":{"*.json":["yarn prettier-write --","git add"],"*.ts":["yarn prettier-write --","git add"]},"scripts":{"precommit":"lint-staged","ci":"yarn lint && yarn test --coverage","clean-out":"rimraf ./out","vscode:prepublish":"yarn clean-out && tsc -p ./tsconfig.publish.json","compile":"tsc -watch -p ./tsconfig.publish.json","lint":"node scripts/lint","postinstall":"node ./node_modules/vscode/bin/install","test":"tsc && jest --config jest.json","watch-test":"yarn test -- --watch","prettier":"prettier","prettier-write":"yarn prettier -- --parser typescript --no-semi --single-quote --trailing-comma es5 --write --print-width 120","prettier-project":"yarn prettier-write -- '?(__mocks__|src|tests)/**/*.ts'"},"devDependencies":{"@types/jest":"^21.1.1","@types/node":"^8.0.31","coveralls":"^3.0.0","danger":"^2","glob":"^7.1.1","husky":"^0.14.3","jest":"^23.3.0","lint-staged":"^4.2.3","prettier":"1.7.3","rimraf":"^2.6.2","tslint":"^5.7.0","tslint-config-prettier":"^1.5.0","typescript":"^2.8.0","vscode":"^1.1.6"},"dependencies":{"elegant-spinner":"^1.0.1","istanbul-lib-coverage":"^1.1.1","istanbul-lib-source-maps":"^1.1.0","jest-editor-support":"23.3.0","jest-snapshot":"^23.0.1","jest-test-typescript-parser":"^23.3.0","micromatch":"^2.3.11"},"gitHead":"3dae02abb85186d447737a74fe7d8beab22b1345","bugs":{"url":"https://github.com/jest-community/vscode-jest/issues"},"homepage":"https://github.com/jest-community/vscode-jest#readme","_id":"vscode-jest@2.9.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.3","_npmUser":{"name":"orta","email":"orta.therox@gmail.com"},"dist":{"integrity":"sha512-dNjV5ham0yzWB3tQylJKKeDbasxZUCEa3UauvrhcPaM599zjjU856bOYwqRVSs8yoAvMKApstpMZu7jhCCCK2w==","shasum":"12501308d3e22fd63d145b61ad89ec29f2796e4d","tarball":"https://registry.npmjs.org/vscode-jest/-/vscode-jest-2.9.1.tgz","fileCount":109,"unpackedSize":3237207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnkkCCRA9TVsSAnZWagAAquIP/Rb9Kfhzi3RdhhiOOr02\nc0JRwdKxgPi75ytYy8XlpvbbZ3cPcicROH7pvhvdZJD9rmyP4eob9cpS99BM\nJHmSqrit9TQDlHvGzeMxmfHO+nKDqFY1u1aygNi2OVz+T7Mypigr5Hgjby9b\nJkRxHJ8+7TImpXigde4TI2FhZbYBA9BW9dM7gkzHaBqYD4ItjDLDrZYFRiEm\nNN+DE4jwhzpi9pC8NYXqKjgAcr2oQgnvOo/jE6CAfICmvfNUHy7aUU+v0hBi\n3YuwAnPU3twRCFXj64/HmcahGJbM2QcQlKEkX0Kb8r/+Wj4LulGu18FR/3gI\nnPQzSLGmZEfCALcrAUUjqocur5a6UOW22kAUTYH3pfXzDewwBQ8h07hEjGQL\nimF+ZjCJqaISSzyP4DSxUAOvpeJjvIzce3XShFLsJKij5yLxO9JQpGg9xMe5\nWyMwLB1aeic/WQSGwJh8+C3LOWu3jk9nS4ZPpoEThZJLTZhTy9qS85W0E8+5\nr75QjCnlRWki9I87Hwkn9CJ19mzmznfxPSWAVO/Bn/MrZbyMEX2s6xV+b+bQ\nkkerixc79vcjOT9NdEhFsgnZnDrHZPvEG7/wZHbCeL/ojZeXztTzkMqODGNQ\nIWhQOcv6jfKcOoo11cE4+ORs+HvtvS6gUuB2TF0DSsNL4Uw6D40G0fQDWZf7\nzUud\r\n=mtvA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBkkB53vebzoxlChvPZGqhXJQkQu4KkC4HjXlQeDM5CAiEAtiVZTuz/dgeIQ+AwG8xTqjMQ+vfzZhFEVknfN5j583U="}]},"maintainers":[{"name":"orta","email":"orta.therox@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vscode-jest_2.9.1_1537100033604_0.2837036216221218"},"_hasShrinkwrap":false}},"readme":"# vscode-jest [![Build Status](https://travis-ci.org/jest-community/vscode-jest.svg?branch=master)](https://travis-ci.org/jest-community/vscode-jest)\n\n---\n\n\nContent\n* [The Aim](#the-aim)\n* [Maintainers](#maintainers)\n* [Features](#features)\n* [How to get it?](#how-to-get-it)\n* [How to get it set up?](#how-to-get-it-set-up)\n* [How to start the Jest?](#how-to-start-the-jest)\n* [How do I debug tests?](#how-do-i-debug-tests)\n\t* [Notes for troubleshooting](#notes-for-troubleshooting)\n* [How do I show code coverage?](#how-do-i-show-code-coverage)\n* [Inspiration](#inspiration)\n* [Wanted](#wanted)\n* [Troubleshooting](#troubleshooting)\n\t* [start jest from non-root folder](#start-jest-from-non-root-folder)\n\t* [non-standard environments](#non-standard-environments)\n\t* [plugin not running as expect? try self-diagnosis](#plugin-not-running-as-expect-try-self-diagnosis)\n* [Want to Contribute?](#want-to-contribute)\n\n---\n\n## The Aim\n\nA comprehensive experience when using [Facebook's Jest](https://github.com/facebook/jest) within a project.\n\n* Useful IDE based Feedback\n* Session based test watching\n\n<img src=\"https://github.com/jest-community/vscode-jest/raw/master/images/vscode-jest.gif\" alt=\"Screenshot of the tool\" width=\"100%\">\n\n## Maintainers\n\nOrta Therox ([@orta](https://github.com/orta)), Sean Poulter ([@seanpoulter](https://github.com/seanpoulter)), Vincent Voyer ([@vvo](https://github.com/vvo)) & ConnectDotz ([@connectdotz](https://github.com/connectdotz)).\n\n## Features\n\n* Starts Jest automatically when you're in a root folder project with Jest installed.\n* Show individual fail / passes inline.\n* Show fails inside the problem inspector.\n* Highlights the errors next to the `expect` functions.\n* Adds syntax highlighting to snapshot files.\n* A one button update for failed snapshots.\n* Show coverage information in files being tested. (_requires coverage to be collected by your jest config_)\n\n## How to get it?\n\nOpen up VS Code, go search for the extension \"Jest\".\n\n## How to get it set up?\n\nThis project has the expectation that you would run something like `npm run test` which _just_ looks like `jest` in the `package.json`. So, please keep your configuration inside the `package.json` as opposed to using command line arguments.\n\nIf have a more complex setup, it can probably be supported, check out the settings. They are all prefixed with `jest`.\n\nAlso, you should use Jest 17+, however 16 works - it will just offer a warning. We're aiming to try and do current Jest version - 1, but won't specifically drop support for older versions unless we're forced into it.\n\n\n## How to start the Jest?\n\nThe extension will start Jest for you when:\n\n* we find Jest configuration files in the workspace: `jest.config.js` or `jest.json`\n* we find Jest installed in the workspace: `node_modules/.bin/jest`\n* we find the workspace has been bootstrapped with create-react-app: `node_modules/react-scripts/node_modules/.bin/jest`\n  - `node_modules/react-native-scripts`\n* you run the **Jest: Start Runner** command\n\n\n## How do I debug tests?\n\nThe simplest use cases should be supported out-of-the-box, but at the latest when VS Code displays errors about the attribute `program` or `runtimeExecutable` not being available, you have to create your own debug configuration within `launch.json`.\n\nThis plugin provides blueprints for debugging plain Jest setups or projects bootstrapped by `create-react-app`. (In the latter case you may have to edit the `runtimeExecutable` to reflect the used `react-scripts` package.) If those don't match your setup, you can modify the blueprints or create a completely new debug configuration, but keep in mind, that the `type` has to be `node` and that the configuration has to be named `\"vscode-jest-tests\"`. In order to learn more about debug/launch configurations in general, visit [VS Code Docs: Debugging](https://code.visualstudio.com/docs/editor/debugging#_launch-configurations).\n\nStarting with debugging is possible by clicking on the `debug` CodeLense above appendant `it` tests, but you can also debug all tests at once by starting debugging of `\"vscode-jest-tests\"` within the VS Code Debug Side Bar.\n\n### Notes for troubleshooting\n\nIn contrast to previous versions of this plugin the debug settings are now independent from VS Code's `jest.pathToJest` and `jest.pathToConfig` setting. If you had to modify one of these, you pretty surely have to create a custom debug configuration and modify its path. This especially includes cases, in which `jest` isn't at its default location.\n\n\n## How do I show code coverage?\n\nTo show code coverage in the VS Code, you will need to:\n\n- Configure Jest to collect coverage information using [the config](https://facebook.github.io/jest/docs/en/configuration.html#collectcoverage-boolean) or [command line options](https://facebook.github.io/jest/docs/en/cli.html#coverage)\n- Show the coverage overlay:\n  - Run the **Jest: Toggle Coverage Overlay** command to show the overlay once\n  - To configure the extension to show the coverage overlay when your workspace loads, add the following setting:\n    ```json\n    {\n        \"jest.showCoverageOnLoad\": true\n    }\n    ```\n\n<!--\n### TODO: Change overlay format\nUse a setting that's one of \"\", \"\", etc.\n```json\n{\n    \"jest.?\": \"\"\n}\n```\n\nScreenshots:\n* Default\n* Gutters\n-->\n\n## Inspiration\n\nI'd like to give a shout out to [Wallaby.js](https://wallabyjs.com), which is a significantly more comprehensive and covers a lot more editors, if this extension interests you - check out that too.\n\n\n## Wanted\n\nSomeone to take responsibility for ensuring that the default setup for create-react-app is always working. All the current authors use TypeScript and React/React Native and so have very little familiarity with changes to CRA. _Apply via PRs :D_.\n\n\n## Troubleshooting\n\n### start jest from non-root folder\nIf you don't use the root of your project for your JS with Jest tests, do not worry, you can still use this project. You will need to use the \"Start Jest Runner\" command, and maybe have to configure your own `jest.pathToJest` setting inside the `.vscode/settings.json` to whatever you would use.\n\nThese are the [activation events](https://code.visualstudio.com/docs/extensionAPI/activation-events) which trigger the runner to start:\n\n```json\n  \"activationEvents\": [\n    \"workspaceContains:node_modules/.bin/jest\",\n    \"workspaceContains:node_modules/react-scripts/node_modules/.bin/jest\",\n    \"workspaceContains:node_modules/react-native-scripts\",\n    \"onCommand:io.orta.jest.start\"\n  ],\n```\n\nThese are the things that will trigger the extension loading. If one of these applies, and you're not seeing the \"Jest\" in the bottom bar, reference the self-diagnosis below\n\n### non-standard environments\nvscode-jest supports common jest configuration, such as when jest is in `root/node_modules/.bin/jest`, or for react-native `root/node_modules/react-native-scripts`. \n\nHowever, if your repo doesn't fall into these patterns or you want to pass extra parameters, you can easily use the `jest.pathToJest` or `jest.pathToConfig` settings to instruct the plugin on how to start jest. You can even use the scripts from package.json, such as `npm run test --` or `yarn test`. Feel free to experiment and search the issues for many examples.\n\n### plugin not running as expect? try self-diagnosis\nIf your can execute jest tests on command line but vscode-jest was not running as expected, here is what you can do to find out what it is actually doing:\n1. click on `Jest:stopped` on status bar to show Jest Output window: \n   <img src=\"https://github.com/jest-community/vscode-jest/raw/master/images/output-channel.png\" alt=\"Screenshot of the tool\" width=\"100%\">\n1. turn on the debug mode: set `\"jest.debugMode\": true` in `.vscode/settings.json` \n1. restart vscode-jest or reload the window (via `Reload Window` command)\n1. open the developer tool (via `Help > Toggle Developer Tools` menu), you should see more information including how we extract jest config and spawn jest processes.\n\nHopefully most issues would be pretty obvious after seeing these extra output, and you can probably fix most yourself by customizing the `jest.pathToJest` and other settings. \n\n## Want to Contribute?\n\nThanks for considering! Check [here](CONTRIBUTING.md) for useful tips and guidelines.\n","maintainers":[{"name":"orta","email":"orta.therox@gmail.com"}],"time":{"modified":"2022-05-23T11:03:07.427Z","created":"2017-11-04T14:58:50.079Z","2.4.3":"2017-11-04T14:58:50.079Z","2.6.1":"2018-02-13T23:07:30.190Z","2.9.1":"2018-09-16T12:13:53.779Z"},"homepage":"https://github.com/jest-community/vscode-jest#readme","repository":{"type":"git","url":"git+https://github.com/jest-community/vscode-jest.git"},"author":{"name":"Orta Therox, ConnectDotz & Sean Poulter","url":"https://github.com/jest-community/vscode-jest"},"bugs":{"url":"https://github.com/jest-community/vscode-jest/issues"},"readmeFilename":"README.md"}