User Config: - <-- This isn't accurate, I have changed things, unsure if nuxi is just unable to pick it up
Runtime Modules: - <-- This isn't accurate, I have modules, unsure if nuxi is just unable to pick it up
Build Modules: -
Reproduction
I am unable to provide a reproduction for 2 main reasons:
This is part of a production app, and I am willing to share it happening in real time privately
It's inconsistent, as on Windows it fails completely and on Ubuntu it fails to run the e2e tests, so I can't even confirm it locally with a different configuration (I can provide the error it provides on Windows which causes it to abort even the initial test screen)
I can, however, provide the overall configuration and a sample of the tests:
nuxt.config.ts modules:
The cucumber test runner appears to execute the tests despite runner option of the setup of e2e to 'vitest' (or trying to use the default). Maybe because of this and maybe because of a different, unseen cause, it simply breaks all e2e tests with the error I provided in the Logs section.
I believe this is part of a bigger issue which I have not unearthed yet that could also explain the respective failures on both environments
Additional context
Attempting to upgrade/reinstall the project's deps does not appear to help.
Unit tests are not affected by it, it affects only those that depend on the setup from the e2e section.
Logs
TypeError: The "chunk" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
โฏ _build node_modules/nitropack/dist/nitro.mjs:2658:22
โฏ node_modules/nuxt/dist/index.mjs:3630:5
โฏ build node_modules/nuxt/dist/index.mjs:5778:3
โฏ buildFixture node_modules/@nuxt/test-utils/dist/shared/test-utils.CaqvQLs_.mjs:121:3
119| const { After, AfterAll, Before, BeforeAll } = await import('@cucumber/cucumber');
120| BeforeAll({ timeout: hooks.ctx.options.setupTimeout }, hooks.setup);
121| Before(hooks.beforeEach);
| ^
122| After(hooks.afterEach);
123| AfterAll(hooks.afterAll);
โฏ setup2 node_modules/@nuxt/test-utils/dist/shared/test-utils.CaqvQLs_.mjs:183:7
More info
### Why do I need to provide a reproduction?
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
### What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.
If `needs reproduction` labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
### How can I create a reproduction?
We have a couple of templates for starting with a minimal reproduction:
๐ https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app-vitest
๐ https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/app-jest
๐ https://stackblitz.com/github/nuxt/test-utils/tree/main/examples/module
A public GitHub repository is also perfect. ๐
Please ensure that the reproduction is as **minimal** as possible. See more details [in our guide](https://nuxt.com/docs/community/reporting-bugs/#create-a-minimal-reproduction).
You might also find these other articles interesting and/or helpful:
- [The Importance of Reproductions](https://antfu.me/posts/why-reproductions-are-required)
- [How to Generate a Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/mcve)
Environment
Build Modules: -
Reproduction
I am unable to provide a reproduction for 2 main reasons:
I can, however, provide the overall configuration and a sample of the tests: nuxt.config.ts modules:
vitest.config.mts:
Sample of test/e2e/e2e.nuxt.test.ts:
Describe the bug
The cucumber test runner appears to execute the tests despite runner option of the
setup
of e2e to 'vitest' (or trying to use the default). Maybe because of this and maybe because of a different, unseen cause, it simply breaks all e2e tests with the error I provided in the Logs section.I believe this is part of a bigger issue which I have not unearthed yet that could also explain the respective failures on both environments
Additional context
Attempting to upgrade/reinstall the project's deps does not appear to help. Unit tests are not affected by it, it affects only those that depend on the
setup
from the e2e section.Logs