New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: parse env options from comments (fix #1962) #1984
Conversation
I seem to have fixed the bug, but I'm not sure if I have the environment option merging right, and things could probably be cleaner and faster in the long run (see #1987). |
@@ -45,22 +52,31 @@ export async function run(files: string[], config: ResolvedConfig): Promise<void | |||
if (!files || !files.length) | |||
continue | |||
|
|||
await withEnv(environment, config.environmentOptions || {}, async () => { | |||
for (const file of files) { | |||
const filesByOptions = groupBy(files, ({ envOptions }) => JSON.stringify(envOptions)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about this case?
// file1.ts
// @vitest-environment custom
// @vitest-environment-options {"option1":1,"option2":2}
// file2.ts
// @vitest-environment custom
// @vitest-environment-options {"option2":2,"option1":1}
These files should run in the same environment, because they have the same values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I'm not sure that's beneficial enough to be worth the downsides. We would have to make the equality logic much more complex. Also from what I understand, the JSON and ECMAScript spec do not specify whether parsers need to be ordered, so we would need to hard code different logic for JavaScript runtimes and environments. Even if we only supported V8, we would have to either ban numerical keys (technically a breaking change since custom environments can have any keys), or introduce undefined runtime behavior (possibly a breaking change).
If you wanted to ensure better performance as a user, you could simply sort your keys with a linter. Worst case, we get an O(n)
performance in exchange for respecting the ECMAScript spec, which I think is worth it.
Would something break if we made the wrong assumption about option equality for grouping envs? If not, then this is just a performance issue and maybe that argument doesn't hold much weight. However, in that case I think adding too much time complexity for edge cases like this could make tests slower than if they had some extra env instances. Also JSON parsing is synchronous, but we already parallelize envs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also from what I understand, the JSON and ECMAScript spec do not specify whether parsers need to be ordered, so we would need to hard code different logic for JavaScript runtimes and environments.
I think you overcomplicate things here, I'm sure we can create a string key that doesn't depend on key order. Sorting keys seems like an obvious solution.
If you wanted to ensure better performance as a user, you could simply sort your keys with a linter.
I don't think you can store them with linter in our docblock?
Would something break if we made the wrong assumption about option equality for grouping envs?
Most things that expect single JSOM instance will break, because we don't clear ESM cache in --no-threads
: Vue, for example, stores "document" globally on import, so next tests with different "options" will fail, because global "document" will be different. This is actually why we have grouping.
I am sure this usecase will emerge, if people will use @vitet-environment-options
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also from what I understand, the JSON and ECMAScript spec do not specify whether parsers need to be ordered, so we would need to hard code different logic for JavaScript runtimes and environments.
I think you overcomplicate things here, I'm sure we can create a string key that doesn't depend on key order. Sorting keys seems like an obvious solution.
That sounds like a good place to start, but I still feel like that's a lot of time complexity. I'll try some benchmarks.
Let's merge it now and see, if the order is really a problem later. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [vitest](https://togithub.com/vitest-dev/vitest) | [`0.24.0` -> `0.24.1`](https://renovatebot.com/diffs/npm/vitest/0.24.0/0.24.1) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.24.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.24.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.24.1/compatibility-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.24.1/confidence-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.24.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) ##### 🐞 Bug Fixes - Remove work-around from `istanbul-lib-instrument` - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2121 - Don't show extra properties for test context - by [@​sheremet-va](https://togithub.com/sheremet-va) in [vitest-dev/vitest#2116 - Parse env options from comments (fix [#​1962](https://togithub.com/vitest-dev/vitest/issues/1962)) - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#1984 - **coverage**: Fix sourcemaps of uncovered lines - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2122 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/fwouts/previewjs). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzMC4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@vitest/coverage-c8](https://togithub.com/vitest-dev/vitest) | [`^0.24.0` -> `^0.24.3`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-c8/0.24.0/0.24.3) | [![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.24.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.24.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.24.3/compatibility-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.24.3/confidence-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.24.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.2...v0.24.3) ##### 🐞 Bug Fixes - **build**: Build packages before publishing - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(3c4a2)</samp>](https://togithub.com/vitest-dev/vitest/commit/3c4a277e) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.2...v0.24.3) ### [`v0.24.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.1...v0.24.2) ##### 🚀 Features - **ui**: Add tests summary in the dashboard - by [@​webfansplz](https://togithub.com/webfansplz) and [@​userquin](https://togithub.com/userquin) in [vitest-dev/vitest#2133 ##### 🐞 Bug Fixes - **bench**: Throw root cause - by [@​azaleta](https://togithub.com/azaleta) and [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#2137 - **browser**: Working again - by [@​userquin](https://togithub.com/userquin) in [vitest-dev/vitest#2143 - **coverage**: Reduce size of leftover v8 reports - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2144 - **vite-node**: Init the debugger ahead of time to ensure that load dumped code work as expected (fix [#​2126](https://togithub.com/vitest-dev/vitest/issues/2126)) - by [@​await-ovo](https://togithub.com/await-ovo) in [vitest-dev/vitest#2127 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.1...v0.24.2) ### [`v0.24.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) ##### 🐞 Bug Fixes - Remove work-around from `istanbul-lib-instrument` - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2121 - Don't show extra properties for test context - by [@​sheremet-va](https://togithub.com/sheremet-va) in [vitest-dev/vitest#2116 - Parse env options from comments (fix [#​1962](https://togithub.com/vitest-dev/vitest/issues/1962)) - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#1984 - **coverage**: Fix sourcemaps of uncovered lines - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2122 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/marvinruder/rating-tracker-frontend). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzcuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzNy4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [vitest](https://togithub.com/vitest-dev/vitest) | [`^0.24.0` -> `^0.24.3`](https://renovatebot.com/diffs/npm/vitest/0.24.0/0.24.3) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.24.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.24.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.24.3/compatibility-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.24.3/confidence-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.24.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.2...v0.24.3) ##### 🐞 Bug Fixes - **build**: Build packages before publishing - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(3c4a2)</samp>](https://togithub.com/vitest-dev/vitest/commit/3c4a277e) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.2...v0.24.3) ### [`v0.24.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.1...v0.24.2) ##### 🚀 Features - **ui**: Add tests summary in the dashboard - by [@​webfansplz](https://togithub.com/webfansplz) and [@​userquin](https://togithub.com/userquin) in [vitest-dev/vitest#2133 ##### 🐞 Bug Fixes - **bench**: Throw root cause - by [@​azaleta](https://togithub.com/azaleta) and [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#2137 - **browser**: Working again - by [@​userquin](https://togithub.com/userquin) in [vitest-dev/vitest#2143 - **coverage**: Reduce size of leftover v8 reports - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2144 - **vite-node**: Init the debugger ahead of time to ensure that load dumped code work as expected (fix [#​2126](https://togithub.com/vitest-dev/vitest/issues/2126)) - by [@​await-ovo](https://togithub.com/await-ovo) in [vitest-dev/vitest#2127 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.1...v0.24.2) ### [`v0.24.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) ##### 🐞 Bug Fixes - Remove work-around from `istanbul-lib-instrument` - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2121 - Don't show extra properties for test context - by [@​sheremet-va](https://togithub.com/sheremet-va) in [vitest-dev/vitest#2116 - Parse env options from comments (fix [#​1962](https://togithub.com/vitest-dev/vitest/issues/1962)) - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#1984 - **coverage**: Fix sourcemaps of uncovered lines - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2122 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/marvinruder/rating-tracker-frontend). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzcuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzNy4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@vitest/coverage-c8](https://togithub.com/vitest-dev/vitest) | [`^0.24.0` -> `^0.24.3`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-c8/0.24.0/0.24.3) | [![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.24.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.24.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.24.3/compatibility-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.24.3/confidence-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.24.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.2...v0.24.3) ##### 🐞 Bug Fixes - **build**: Build packages before publishing - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(3c4a2)</samp>](https://togithub.com/vitest-dev/vitest/commit/3c4a277e) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.2...v0.24.3) ### [`v0.24.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.1...v0.24.2) ##### 🚀 Features - **ui**: Add tests summary in the dashboard - by [@​webfansplz](https://togithub.com/webfansplz) and [@​userquin](https://togithub.com/userquin) in [vitest-dev/vitest#2133 ##### 🐞 Bug Fixes - **bench**: Throw root cause - by [@​azaleta](https://togithub.com/azaleta) and [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#2137 - **browser**: Working again - by [@​userquin](https://togithub.com/userquin) in [vitest-dev/vitest#2143 - **coverage**: Reduce size of leftover v8 reports - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2144 - **vite-node**: Init the debugger ahead of time to ensure that load dumped code work as expected (fix [#​2126](https://togithub.com/vitest-dev/vitest/issues/2126)) - by [@​await-ovo](https://togithub.com/await-ovo) in [vitest-dev/vitest#2127 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.1...v0.24.2) ### [`v0.24.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) ##### 🐞 Bug Fixes - Remove work-around from `istanbul-lib-instrument` - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2121 - Don't show extra properties for test context - by [@​sheremet-va](https://togithub.com/sheremet-va) in [vitest-dev/vitest#2116 - Parse env options from comments (fix [#​1962](https://togithub.com/vitest-dev/vitest/issues/1962)) - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#1984 - **coverage**: Fix sourcemaps of uncovered lines - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2122 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/marvinruder/rating-tracker-frontend). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzcuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzNy4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [vitest](https://togithub.com/vitest-dev/vitest) | [`^0.24.0` -> `^0.24.3`](https://renovatebot.com/diffs/npm/vitest/0.24.0/0.24.3) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.24.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.24.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.24.3/compatibility-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.24.3/confidence-slim/0.24.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.24.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.2...v0.24.3) ##### 🐞 Bug Fixes - **build**: Build packages before publishing - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(3c4a2)</samp>](https://togithub.com/vitest-dev/vitest/commit/3c4a277e) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.2...v0.24.3) ### [`v0.24.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.1...v0.24.2) ##### 🚀 Features - **ui**: Add tests summary in the dashboard - by [@​webfansplz](https://togithub.com/webfansplz) and [@​userquin](https://togithub.com/userquin) in [vitest-dev/vitest#2133 ##### 🐞 Bug Fixes - **bench**: Throw root cause - by [@​azaleta](https://togithub.com/azaleta) and [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#2137 - **browser**: Working again - by [@​userquin](https://togithub.com/userquin) in [vitest-dev/vitest#2143 - **coverage**: Reduce size of leftover v8 reports - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2144 - **vite-node**: Init the debugger ahead of time to ensure that load dumped code work as expected (fix [#​2126](https://togithub.com/vitest-dev/vitest/issues/2126)) - by [@​await-ovo](https://togithub.com/await-ovo) in [vitest-dev/vitest#2127 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.1...v0.24.2) ### [`v0.24.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) ##### 🐞 Bug Fixes - Remove work-around from `istanbul-lib-instrument` - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2121 - Don't show extra properties for test context - by [@​sheremet-va](https://togithub.com/sheremet-va) in [vitest-dev/vitest#2116 - Parse env options from comments (fix [#​1962](https://togithub.com/vitest-dev/vitest/issues/1962)) - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [vitest-dev/vitest#1984 - **coverage**: Fix sourcemaps of uncovered lines - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [vitest-dev/vitest#2122 ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.0...v0.24.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/marvinruder/rating-tracker-frontend). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzcuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzNy4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
No description provided.