{"id":17743126,"url":"https://github.com/julien-r44/japa-vscode","last_synced_at":"2025-10-30T09:23:28.869Z","repository":{"id":86779657,"uuid":"531506519","full_name":"Julien-R44/japa-vscode","owner":"Julien-R44","description":"🧪 A Japa extension for VSCode","archived":false,"fork":false,"pushed_at":"2023-11-08T12:41:33.000Z","size":392,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T15:26:00.784Z","etag":null,"topics":["adonisjs","japa","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=jripouteau.japa-vscode","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Julien-R44.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["julien-r44"],"polar":"Julien-R44"}},"created_at":"2022-09-01T12:21:17.000Z","updated_at":"2024-02-09T18:32:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c78ed56-905e-4e51-97fe-542b7615217d","html_url":"https://github.com/Julien-R44/japa-vscode","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fjapa-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fjapa-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fjapa-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Julien-R44%2Fjapa-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Julien-R44","download_url":"https://codeload.github.com/Julien-R44/japa-vscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620224,"owners_count":20806722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adonisjs","japa","vscode","vscode-extension"],"created_at":"2024-10-26T05:42:42.182Z","updated_at":"2025-10-21T18:08:37.717Z","avatar_url":"https://github.com/Julien-R44.png","language":"TypeScript","funding_links":["https://github.com/sponsors/julien-r44","https://polar.sh/Julien-R44"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"650px\" src=\"https://user-images.githubusercontent.com/8337858/187943614-8faa9500-d7e8-463c-b5f7-3ece742827fd.png\" /\u003e\n  \u003ch1\u003e🧪 Japa extension for VSCode\u003c/h1\u003e \u003cbr/\u003e\n\u003c/div\u003e\n\n## Features\n* [Vscode Testing API](https://code.visualstudio.com/api/extension-guides/testing) integration \n* Run tests without typing anything. Either with a shortcut, Code Lenses, or using Vscode Test Explorer\n* \"See snapshot\" codelens to quickly see the snapshot of a test ( for [@japa/snapshot](https://github.com/japa/snapshot) )\n* Support multiple workspaces\n* Support Javascript, Typescript, ESM, CJS\n* Works with Adonis.js projects using Japa\n* Snippets\n\n## Demo\n\n### Using Vscode Test Explorer\n![](https://github.com/Julien-R44/japa-vscode/assets/8337858/0eba59be-3897-4a70-95a2-06b1195b85b0)\n\n### Using Code Lenses\n![](https://user-images.githubusercontent.com/8337858/187944316-c1b5f0c4-2ea2-46f1-9437-a7433db8a2eb.gif)\n\n## Instructions\n\n### Test Explorer\nIf you wish to use the vscode test explorer integration, you will need to have Japa version `3.0.0` or higher to be able to use the `--reporter` flag.\n\nAlso note that you need to have the `ndjson` reporter activated in your Japa config file, since we are using it to communicate with the extension. `ndjson` is enabled by default if you don't have a `reporters` key in your config file. So if you have a `reporters` config, make sure to inclure `ndjson` in it.\n\n```js\nimport { configure, processCLIArgs, run } from '@japa/runner'\nimport { assert } from '@japa/assert'\nimport { ndjson, spec } from '@japa/runner/reporters'\n\nprocessCLIArgs(process.argv.splice(2))\nconfigure({\n  files: ['tests/**/*.spec.js'],\n  plugins: [assert()],\n  reporters: {\n    activated: ['spec'],\n    list: [ndjson(), spec()], // 👈 Make sure to include ndjson\n  }\n})\n```\n\n## Configuration\n- `tests.npmScript`: The npm script to run when executing tests. Defaults to `test`\n\n  i.e if you set it to `test:unit`, the extension will run `npm run test:unit --flags` when executing tests\n- `tests.enableCodeLens`: Show CodeLenses above each test. Defaults to `true`\n- `tests.watchMode`: Run tests in watch mode when executed via shortcut/codelens. Defaults to `false`\n- `tests.filePattern`: The glob pattern to use when searching for tests. Defaults to `**/*.{test,spec}.{ts,js}`\n- `misc.useUnixCd`: Use Unix-style cd for windows terminals ( Useful when using Cygwin or Git Bash )\n- `misc.disableNodeWarnings` : Disable node warnings by setting `NODE_NO_WARNINGS=1` when running tests. Defaults to `true`. \n\n## Keybindings\n- `ctrl+shift+t`: Run the test at the cursor position\n- `ctrl+shift+f`: Run the test file in the active editor\n\nThese keybindings can be easily changed in your VSCode configuration : \n\n- F1 -\u003e Preferences: Open Keyboard Shortcuts\n- Type `japa-vscode` in the search bar\n- Change the `japa-vscode.runTest` or `japa-vscode.runTestFile` keybindings\n\n## Snippets\n\nAll snippets are prefixed with `ja:`. Give it a try in your editor to see what's available.\n\n## Contributing\n* See [contributing guide](./.github/CONTRIBUTING.md)\n* Clone the project and open it in VS Code\n* Run `npm install`\n* Press `F5` to open a new VSCode window with your extension loaded.\n* You can relaunch the extension from the debug toolbar after changing code in `src/index.ts`.\n* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulien-r44%2Fjapa-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulien-r44%2Fjapa-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulien-r44%2Fjapa-vscode/lists"}