Skip to content
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(cli): forward node wasm flags #2041

Merged
merged 3 commits into from
Sep 18, 2022
Merged

fix(cli): forward node wasm flags #2041

merged 3 commits into from
Sep 18, 2022

Conversation

Peeterush
Copy link
Contributor

--experimental-wasm-threads --wasm-atomics-on-non-shared-memory
These node options cannot be enabled via the NODE_OPTIONS environment variable, only via cli flags. But using node --experimental-wasm-threads --wasm-atomics-on-non-shared-memory vitest only applies them to cli-wrapper, not to any subsequently spawned processes. The proposed change adds them to the list of flags that Vitest forwards to spawned processes.

@antfu antfu changed the title fix: forward node wasm flags for testing wasm libraries on node 14 fix(cli): forward node wasm flags Sep 18, 2022
@antfu antfu merged commit 8740054 into vitest-dev:main Sep 18, 2022
renovate bot referenced this pull request in beeequeue/arm-server Sep 18, 2022
[![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://github.com/vitest-dev/vitest) |
[`0.23.2` ->
`0.23.4`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-c8/0.23.2/0.23.4)
|
[![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.23.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.23.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.23.4/compatibility-slim/0.23.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.23.4/confidence-slim/0.23.2)](https://docs.renovatebot.com/merge-confidence/)
|
| [vitest](https://github.com/vitest-dev/vitest) | [`0.23.2` ->
`0.23.4`](https://renovatebot.com/diffs/npm/vitest/0.23.2/0.23.4) |
[![age](https://badges.renovateapi.com/packages/npm/vitest/0.23.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.23.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vitest/0.23.4/compatibility-slim/0.23.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.23.4/confidence-slim/0.23.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitest-dev/vitest</summary>

###
[`v0.23.4`](https://github.com/vitest-dev/vitest/releases/tag/v0.23.4)

[Compare
Source](https://github.com/vitest-dev/vitest/compare/v0.23.2...v0.23.4)

#####    🚀 Features

- Give helpful message, when using vi.mock  -  by
[@&#8203;sheremet-va](https://github.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2047](https://github.com/vitest-dev/vitest/issues/2047)
- **benchmark**: Only mode  -  by
[@&#8203;Aslemammad](https://github.com/Aslemammad) in
[https://github.com/vitest-dev/vitest/issues/2039](https://github.com/vitest-dev/vitest/issues/2039)

#####    🐞 Bug Fixes

- Move outputFile to benchmark, allow --reporter for benchmark  -  by
[@&#8203;sheremet-va](https://github.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2037](https://github.com/vitest-dev/vitest/issues/2037)
- **cli**: Forward node wasm flags  -  by
[@&#8203;Peeterush](https://github.com/Peeterush) in
[https://github.com/vitest-dev/vitest/issues/2041](https://github.com/vitest-dev/vitest/issues/2041)
- **coverage**: `istanbul-reports` to support `projectRoot`  -  by
[@&#8203;AriPerkkio](https://github.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/2051](https://github.com/vitest-dev/vitest/issues/2051)

#####     [View changes on
GitHub](https://github.com/vitest-dev/vitest/compare/v0.23.3...v0.23.4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 11am" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates 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/BeeeQueue/arm-server).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTcuMCIsInVwZGF0ZWRJblZlciI6IjMyLjE5Ny4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants