Skip to content

Commit

Permalink
chore: update repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed Apr 30, 2022
1 parent 20e432d commit 6d16a9e
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 112 deletions.
194 changes: 107 additions & 87 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,181 +1,201 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.1.22](https://github.com/zxch3n/vitest-explorer/compare/v0.1.21...v0.1.22) (2022-04-29)
All notable changes to this project will be documented in this file. See
[standard-version](https://github.com/conventional-changelog/standard-version)
for commit guidelines.

### [0.1.22](https://github.com/vitest-dev/vscode/compare/v0.1.21...v0.1.22) (2022-04-29)

### Features

* update snapshot from contextmenu ([#28](https://github.com/zxch3n/vitest-explorer/issues/28)) ([9228ecf](https://github.com/zxch3n/vitest-explorer/commit/9228ecf4e73ec179baf9bddeed21b55f0b659524))

- update snapshot from contextmenu
([#28](https://github.com/vitest-dev/vscode/issues/28))
([9228ecf](https://github.com/vitest-dev/vscode/commit/9228ecf4e73ec179baf9bddeed21b55f0b659524))

### Bug Fixes

* filter ANSI color in the outpu ([816be56](https://github.com/zxch3n/vitest-explorer/commit/816be56fd82ff2c346d7b0bf30d4ff9e960329e6)), closes [#19](https://github.com/zxch3n/vitest-explorer/issues/19)

### [0.1.21](https://github.com/zxch3n/vitest-explorer/compare/v0.1.20...v0.1.21) (2022-04-28)
- filter ANSI color in the outpu
([816be56](https://github.com/vitest-dev/vscode/commit/816be56fd82ff2c346d7b0bf30d4ff9e960329e6)),
closes [#19](https://github.com/vitest-dev/vscode/issues/19)

### [0.1.21](https://github.com/vitest-dev/vscode/compare/v0.1.20...v0.1.21) (2022-04-28)

### Bug Fixes

* add logging for child.stderr [#20](https://github.com/zxch3n/vitest-explorer/issues/20) ([75d240f](https://github.com/zxch3n/vitest-explorer/commit/75d240f90a9853b82b04c3f50e691da9cd5875de))
* use `npx vitest` as default vitest command ([d4d4f70](https://github.com/zxch3n/vitest-explorer/commit/d4d4f70ac97657948daad4af0d4e119cf5220d0d))

### [0.1.20](https://github.com/zxch3n/vitest-explorer/compare/v0.1.19...v0.1.20) (2022-04-27)
- add logging for child.stderr
[#20](https://github.com/vitest-dev/vscode/issues/20)
([75d240f](https://github.com/vitest-dev/vscode/commit/75d240f90a9853b82b04c3f50e691da9cd5875de))
- use `npx vitest` as default vitest command
([d4d4f70](https://github.com/vitest-dev/vscode/commit/d4d4f70ac97657948daad4af0d4e119cf5220d0d))

### [0.1.20](https://github.com/vitest-dev/vscode/compare/v0.1.19...v0.1.20) (2022-04-27)

### Bug Fixes

* File path corrections for Windows ([#24](https://github.com/zxch3n/vitest-explorer/issues/24)) ([66ca70f](https://github.com/zxch3n/vitest-explorer/commit/66ca70f3894a61a5c2759e78f0ba552f6cebdea7))

### [0.1.19](https://github.com/zxch3n/vitest-explorer/compare/v0.1.18...v0.1.19) (2022-04-23)
- File path corrections for Windows
([#24](https://github.com/vitest-dev/vscode/issues/24))
([66ca70f](https://github.com/vitest-dev/vscode/commit/66ca70f3894a61a5c2759e78f0ba552f6cebdea7))

### [0.1.19](https://github.com/vitest-dev/vscode/compare/v0.1.18...v0.1.19) (2022-04-23)

### Bug Fixes

* debugging on windows ([#23](https://github.com/zxch3n/vitest-explorer/issues/23)) ([36fea6d](https://github.com/zxch3n/vitest-explorer/commit/36fea6d63dc43989bee945faa6840186f648fe05))

### [0.1.18](https://github.com/zxch3n/vitest-explorer/compare/v0.1.17...v0.1.18) (2022-04-22)
- debugging on windows ([#23](https://github.com/vitest-dev/vscode/issues/23))
([36fea6d](https://github.com/vitest-dev/vscode/commit/36fea6d63dc43989bee945faa6840186f648fe05))

### [0.1.17](https://github.com/zxch3n/vitest-explorer/compare/v0.1.16...v0.1.17) (2022-04-19)
### [0.1.18](https://github.com/vitest-dev/vscode/compare/v0.1.17...v0.1.18) (2022-04-22)

### [0.1.17](https://github.com/vitest-dev/vscode/compare/v0.1.16...v0.1.17) (2022-04-19)

### Bug Fixes

* use 'node vitest' as vitest command on windows ([e3df7da](https://github.com/zxch3n/vitest-explorer/commit/e3df7dac2dfef6d9c75e79426b1d177ca6479511))

### [0.1.16](https://github.com/zxch3n/vitest-explorer/compare/v0.1.15...v0.1.16) (2022-04-06)
- use 'node vitest' as vitest command on windows
([e3df7da](https://github.com/vitest-dev/vscode/commit/e3df7dac2dfef6d9c75e79426b1d177ca6479511))

### [0.1.16](https://github.com/vitest-dev/vscode/compare/v0.1.15...v0.1.16) (2022-04-06)

### Bug Fixes

* linebreak on win ([abaeb04](https://github.com/zxch3n/vitest-explorer/commit/abaeb049fc2ebede7e293c9502dcde2127f53f28))

### [0.1.15](https://github.com/zxch3n/vitest-explorer/compare/v0.1.14...v0.1.15) (2022-03-31)
- linebreak on win
([abaeb04](https://github.com/vitest-dev/vscode/commit/abaeb049fc2ebede7e293c9502dcde2127f53f28))

### [0.1.15](https://github.com/vitest-dev/vscode/compare/v0.1.14...v0.1.15) (2022-03-31)

### Bug Fixes

* replace pnpm with yarn ([7e59a60](https://github.com/zxch3n/vitest-explorer/commit/7e59a602b77baad7d0d00369667c27bd5487f76f))

### [0.1.14](https://github.com/zxch3n/vitest-explorer/compare/v1.0.1...v0.1.14) (2022-03-30)
- replace pnpm with yarn
([7e59a60](https://github.com/vitest-dev/vscode/commit/7e59a602b77baad7d0d00369667c27bd5487f76f))

### [0.1.14](https://github.com/vitest-dev/vscode/compare/v1.0.1...v0.1.14) (2022-03-30)

### Bug Fixes

* force spawn to use powershell on windows and fixed drive case match ([04538c6](https://github.com/zxch3n/vitest-explorer/commit/04538c69c86ba702d40e0861dc283bcaa0f55cc8))

### [0.1.13](https://github.com/zxch3n/vitest-explorer/compare/v0.1.12...v0.1.13) (2022-03-29)
- force spawn to use powershell on windows and fixed drive case match
([04538c6](https://github.com/vitest-dev/vscode/commit/04538c69c86ba702d40e0861dc283bcaa0f55cc8))

### [0.1.13](https://github.com/vitest-dev/vscode/compare/v0.1.12...v0.1.13) (2022-03-29)

### Bug Fixes

* remove redundant line break ([0c992af](https://github.com/zxch3n/vitest-explorer/commit/0c992af3adb8f238664225cf616c1aa97fce85b7))

### [0.1.12](https://github.com/zxch3n/vitest-explorer/compare/v0.1.11...v0.1.12) (2022-03-29)
- remove redundant line break
([0c992af](https://github.com/vitest-dev/vscode/commit/0c992af3adb8f238664225cf616c1aa97fce85b7))

### [0.1.12](https://github.com/vitest-dev/vscode/compare/v0.1.11...v0.1.12) (2022-03-29)

### Bug Fixes

* debug & run tests on win ([27ec1a9](https://github.com/zxch3n/vitest-explorer/commit/27ec1a95e5b336b362c6f20721eac2b2fa1979c9))

### [0.1.11](https://github.com/zxch3n/vitest-explorer/compare/v0.1.10...v0.1.11) (2022-03-29)
- debug & run tests on win
([27ec1a9](https://github.com/vitest-dev/vscode/commit/27ec1a95e5b336b362c6f20721eac2b2fa1979c9))

### [0.1.11](https://github.com/vitest-dev/vscode/compare/v0.1.10...v0.1.11) (2022-03-29)

### Bug Fixes

* adapt vitest 0.8.0 json format ([7326dc2](https://github.com/zxch3n/vitest-explorer/commit/7326dc2c04b78edc8c5c82b8473dfdc360d2da03))

### [0.1.10](https://github.com/zxch3n/vitest-explorer/compare/v0.1.9...v0.1.10) (2022-03-25)
- adapt vitest 0.8.0 json format
([7326dc2](https://github.com/vitest-dev/vscode/commit/7326dc2c04b78edc8c5c82b8473dfdc360d2da03))

### [0.1.10](https://github.com/vitest-dev/vscode/compare/v0.1.9...v0.1.10) (2022-03-25)

### Features

* getting test result from debug ([78aaa4b](https://github.com/zxch3n/vitest-explorer/commit/78aaa4b689ddce3edf6700a20a22c1892a61e838))

### [0.1.9](https://github.com/zxch3n/vitest-explorer/compare/v0.1.8...v0.1.9) (2022-03-23)
- getting test result from debug
([78aaa4b](https://github.com/vitest-dev/vscode/commit/78aaa4b689ddce3edf6700a20a22c1892a61e838))

### [0.1.9](https://github.com/vitest-dev/vscode/compare/v0.1.8...v0.1.9) (2022-03-23)

### Features

* add directory prefix if needed ([23f40d1](https://github.com/zxch3n/vitest-explorer/commit/23f40d16408e0c82fed909bfc470aae32aa30681))

- add directory prefix if needed
([23f40d1](https://github.com/vitest-dev/vscode/commit/23f40d16408e0c82fed909bfc470aae32aa30681))

### Bug Fixes

* detect vitest env by vitest config file ([d584b28](https://github.com/zxch3n/vitest-explorer/commit/d584b28b4a976a169dd04463ae96f4500b3dc077))
* filter tests correctly ([4f57d6e](https://github.com/zxch3n/vitest-explorer/commit/4f57d6e21c70a2fc6501989c31642e689a9486f4))

### [0.1.8](https://github.com/zxch3n/vitest-explorer/compare/v0.1.7...v0.1.8) (2022-03-23)
- detect vitest env by vitest config file
([d584b28](https://github.com/vitest-dev/vscode/commit/d584b28b4a976a169dd04463ae96f4500b3dc077))
- filter tests correctly
([4f57d6e](https://github.com/vitest-dev/vscode/commit/4f57d6e21c70a2fc6501989c31642e689a9486f4))

### [0.1.8](https://github.com/vitest-dev/vscode/compare/v0.1.7...v0.1.8) (2022-03-23)

### Bug Fixes

* build error ([95d60c6](https://github.com/zxch3n/vitest-explorer/commit/95d60c69ccf1c5568c5fd164856a6ec04be7f894))

### [0.1.7](https://github.com/zxch3n/vitest-explorer/compare/v0.1.6...v0.1.7) (2022-03-23)
- build error
([95d60c6](https://github.com/vitest-dev/vscode/commit/95d60c69ccf1c5568c5fd164856a6ec04be7f894))

### [0.1.7](https://github.com/vitest-dev/vscode/compare/v0.1.6...v0.1.7) (2022-03-23)

### Bug Fixes

* compile error ([ad95334](https://github.com/zxch3n/vitest-explorer/commit/ad953342b2c089a0ef7be66290ba04fe9006f587))

### [0.1.6](https://github.com/zxch3n/vitest-explorer/compare/v0.1.5...v0.1.6) (2022-03-23)
- compile error
([ad95334](https://github.com/vitest-dev/vscode/commit/ad953342b2c089a0ef7be66290ba04fe9006f587))

### [0.1.6](https://github.com/vitest-dev/vscode/compare/v0.1.5...v0.1.6) (2022-03-23)

### Features

* custom config ([05b06b4](https://github.com/zxch3n/vitest-explorer/commit/05b06b49ef3dea401bb5e4be1ab508051dc36b5e))

### [0.1.5](https://github.com/zxch3n/vitest-explorer/compare/v0.1.4...v0.1.5) (2022-03-23)
- custom config
([05b06b4](https://github.com/vitest-dev/vscode/commit/05b06b49ef3dea401bb5e4be1ab508051dc36b5e))

### [0.1.5](https://github.com/vitest-dev/vscode/compare/v0.1.4...v0.1.5) (2022-03-23)

### Bug Fixes

* refine error handling and err msg ([febdc42](https://github.com/zxch3n/vitest-explorer/commit/febdc42caf10617cf2da52a7b46414f620144474))

### [0.1.4](https://github.com/zxch3n/vitest-explorer/compare/v0.1.3...v0.1.4) (2022-03-22)
- refine error handling and err msg
([febdc42](https://github.com/vitest-dev/vscode/commit/febdc42caf10617cf2da52a7b46414f620144474))

### [0.1.4](https://github.com/vitest-dev/vscode/compare/v0.1.3...v0.1.4) (2022-03-22)

### Bug Fixes

* should use test name as id instead of index ([e7622dd](https://github.com/zxch3n/vitest-explorer/commit/e7622dd3eced06eb538940c390a15a75816114b5))

### [0.1.3](https://github.com/zxch3n/vitest-explorer/compare/v0.1.2...v0.1.3) (2022-03-22)
- should use test name as id instead of index
([e7622dd](https://github.com/vitest-dev/vscode/commit/e7622dd3eced06eb538940c390a15a75816114b5))

### [0.1.3](https://github.com/vitest-dev/vscode/compare/v0.1.2...v0.1.3) (2022-03-22)

### Bug Fixes

* audit issues ([ae7cc44](https://github.com/zxch3n/vitest-explorer/commit/ae7cc4461f05ea5f29e279613aafc7f5635b4789))
* make error more informative ([5ced470](https://github.com/zxch3n/vitest-explorer/commit/5ced4707f6011637430e4b9320e6951cd2615582))

### [0.1.2](https://github.com/zxch3n/vitest-explorer/compare/v0.1.1...v0.1.2) (2022-03-22)
- audit issues
([ae7cc44](https://github.com/vitest-dev/vscode/commit/ae7cc4461f05ea5f29e279613aafc7f5635b4789))
- make error more informative
([5ced470](https://github.com/vitest-dev/vscode/commit/5ced4707f6011637430e4b9320e6951cd2615582))

### [0.1.2](https://github.com/vitest-dev/vscode/compare/v0.1.1...v0.1.2) (2022-03-22)

### Features

* run all tests in one go ([ac86db0](https://github.com/zxch3n/vitest-explorer/commit/ac86db09bc1b0f285d1000dfa3b12eee308f2146))
- run all tests in one go
([ac86db0](https://github.com/vitest-dev/vscode/commit/ac86db09bc1b0f285d1000dfa3b12eee308f2146))

### 0.1.1 (2022-03-22)


### Features

* add test runtime ([3d6e1ab](https://github.com/zxch3n/vitest-explorer/commit/3d6e1ab1d96c7182f788355236e1bb953dd2e344))
* discover tests ([c2dfcbf](https://github.com/zxch3n/vitest-explorer/commit/c2dfcbf5ccab5dd7e6aeb2003564e4046730ed44))
* forward output ([98b0820](https://github.com/zxch3n/vitest-explorer/commit/98b082034366fe261daf1f88c067153e02340727))
* run tests ([94c6161](https://github.com/zxch3n/vitest-explorer/commit/94c616131c50662998e194a155633576075499c5))
* support debug ([50aafca](https://github.com/zxch3n/vitest-explorer/commit/50aafca9eda32aad5d058cf947f9e48d1ab1c57a))


### Bug Fixes

* cannot get test result correctly ([3847bd4](https://github.com/zxch3n/vitest-explorer/commit/3847bd4f49e14d011a4e7a6679c69cc4e2b03441))
* conditionally activate extension ([0b18649](https://github.com/zxch3n/vitest-explorer/commit/0b186491372aec38e1e6f9df2495bf98373aa81e))
* end run after all tests settled ([f538b2b](https://github.com/zxch3n/vitest-explorer/commit/f538b2b2900313bd372708302f61c87a90adc8fc))
* launch script ([263ef2c](https://github.com/zxch3n/vitest-explorer/commit/263ef2caaf4d59487f89aad53669364307cb90ae))
* load test in visible text editors ([c659196](https://github.com/zxch3n/vitest-explorer/commit/c659196e4f1b6ba04893196eafc924adca3f8bf3))
* run test with full name ([4269efc](https://github.com/zxch3n/vitest-explorer/commit/4269efc2efd8ee35d4ea7a89b47a41dffd92611b))
* test registry bug ([d041868](https://github.com/zxch3n/vitest-explorer/commit/d041868550c42ae2c65a9e4577d0c7875a51b4d0))
* use testCase index to retrieve testItem ([89daff4](https://github.com/zxch3n/vitest-explorer/commit/89daff47638091f035a4a455d388b224a8a3d22a))
- add test runtime
([3d6e1ab](https://github.com/vitest-dev/vscode/commit/3d6e1ab1d96c7182f788355236e1bb953dd2e344))
- discover tests
([c2dfcbf](https://github.com/vitest-dev/vscode/commit/c2dfcbf5ccab5dd7e6aeb2003564e4046730ed44))
- forward output
([98b0820](https://github.com/vitest-dev/vscode/commit/98b082034366fe261daf1f88c067153e02340727))
- run tests
([94c6161](https://github.com/vitest-dev/vscode/commit/94c616131c50662998e194a155633576075499c5))
- support debug
([50aafca](https://github.com/vitest-dev/vscode/commit/50aafca9eda32aad5d058cf947f9e48d1ab1c57a))

### Bug Fixes

- cannot get test result correctly
([3847bd4](https://github.com/vitest-dev/vscode/commit/3847bd4f49e14d011a4e7a6679c69cc4e2b03441))
- conditionally activate extension
([0b18649](https://github.com/vitest-dev/vscode/commit/0b186491372aec38e1e6f9df2495bf98373aa81e))
- end run after all tests settled
([f538b2b](https://github.com/vitest-dev/vscode/commit/f538b2b2900313bd372708302f61c87a90adc8fc))
- launch script
([263ef2c](https://github.com/vitest-dev/vscode/commit/263ef2caaf4d59487f89aad53669364307cb90ae))
- load test in visible text editors
([c659196](https://github.com/vitest-dev/vscode/commit/c659196e4f1b6ba04893196eafc924adca3f8bf3))
- run test with full name
([4269efc](https://github.com/vitest-dev/vscode/commit/4269efc2efd8ee35d4ea7a89b47a41dffd92611b))
- test registry bug
([d041868](https://github.com/vitest-dev/vscode/commit/d041868550c42ae2c65a9e4577d0c7875a51b4d0))
- use testCase index to retrieve testItem
([89daff4](https://github.com/vitest-dev/vscode/commit/89daff47638091f035a4a455d388b224a8a3d22a))
34 changes: 16 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@

<p align="center">
<br />
<a title="Learn more about Vitest for VSCode" href="https://github.com/zxch3n/vitest-explorer"><img src="./img/cover.png" alt="Vitest for VSCode Logo" width="50%" /></a>
<a title="Learn more about Vitest for VSCode" href="https://github.com/vitest-dev/vscode"><img src="./img/cover.png" alt="Vitest for VSCode Logo" width="50%" /></a>

</p>

<h2 align="center">
<b>Vitest for VSCode</b>
</h2>



<br />

![](https://i.ibb.co/bJCbCf2/202203292020.gif)


- Require VSCode's version >= July 2021 (version 1.59).
- Require Vitest's version >= v0.8.0

This plugin is based on [vscode testing api](https://code.visualstudio.com/api/extension-guides/testing).


This plugin is based on
[vscode testing api](https://code.visualstudio.com/api/extension-guides/testing).

# Config

- `vitest.enable`: This plugin will try to detect whether the current project is set up with Vitest to activate itself. When it failed, you can enable the plugin manually
- `vitest.nodeEnv`: The env passed to runner process in addition to `process.env`
- `vitest.commandLine`: The command line to start vitest tests. It should be the same command line users run vitest tests from a terminal/shell, with ability to append extra arguments (by the extension at runtime). For example `npx vitest` or `yarn test -- --run`
- `vitest.include`: Include glob for test files. Default: `[\"**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}\"]`
- `vitest.exclude`: Exclude globs for test files. Default: `[\"**/node_modules/**\", \"**/dist/**\", \"**/cypress/**\", \"**/.{idea,git,cache,output,temp}/**\"]`

- `vitest.enable`: This plugin will try to detect whether the current project is
set up with Vitest to activate itself. When it failed, you can enable the
plugin manually
- `vitest.nodeEnv`: The env passed to runner process in addition to
`process.env`
- `vitest.commandLine`: The command line to start vitest tests. It should be the
same command line users run vitest tests from a terminal/shell, with ability
to append extra arguments (by the extension at runtime). For example
`npx vitest` or `yarn test -- --run`
- `vitest.include`: Include glob for test files. Default:
`[\"**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}\"]`
- `vitest.exclude`: Exclude globs for test files. Default:
`[\"**/node_modules/**\", \"**/dist/**\", \"**/cypress/**\", \"**/.{idea,git,cache,output,temp}/**\"]`

# Screenshots

Expand All @@ -46,11 +48,7 @@ This plugin is based on [vscode testing api](https://code.visualstudio.com/api/e

![](https://i.ibb.co/gMZWXZQ/Screen-Recording-2022-03-29-at-20-59-31.gif)


# TODOs

- [ ] Dynamic test name and test.each are not supported yet
- [ ] Support multi-root workspaces



4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/zxch3n/vitest-explorer.git"
"url": "https://github.com/vitest-dev/vscode.git"
},
"bugs": {
"url": "https://github.com/zxch3n/vitest-explorer/issues"
"url": "https://github.com/vitest-dev/vscode/issues"
},
"keywords": [
"vitest",
Expand Down
10 changes: 6 additions & 4 deletions samples/monorepo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.0.1](https://github.com/zxch3n/vitest-explorer/compare/v0.1.13...v1.0.1) (2022-03-30)
All notable changes to this project will be documented in this file. See
[standard-version](https://github.com/conventional-changelog/standard-version)
for commit guidelines.

### [1.0.1](https://github.com/vitest-dev/vscode/compare/v0.1.13...v1.0.1) (2022-03-30)

### Bug Fixes

* provide better support for monorepo ([2843c6e](https://github.com/zxch3n/vitest-explorer/commit/2843c6e6fa95c23558893e77fbefba004f0d475f))
- provide better support for monorepo
([2843c6e](https://github.com/vitest-dev/vscode/commit/2843c6e6fa95c23558893e77fbefba004f0d475f))
2 changes: 1 addition & 1 deletion src/runHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async function runTest(
run.errored(
testCase,
new vscode.TestMessage(
"Unexpected condition. Please report the bug to https://github.com/zxch3n/vitest-explorer/issues",
"Unexpected condition. Please report the bug to https://github.com/vitest-dev/vscode/issues",
),
);
});
Expand Down

0 comments on commit 6d16a9e

Please sign in to comment.