nuxt / test-utils

๐Ÿงช Test utilities for Nuxt
http://nuxt.com/docs/getting-started/testing
MIT License
323 stars 84 forks source link

ctx.nuxt does not exist when build: false in setup #936

Open Al-Rozhkov opened 2 months ago

Al-Rozhkov commented 2 months ago

๐Ÿ”— Linked issue

Resolves #918

โ“ Type of change

๐Ÿ“š Description

Boluwatife2904 commented 2 months ago

Thank You so much for this @Al-Rozhkov. I've been wondering why I've unable to run my tests for a while without any luck.

@danielroe any chance this gets reviewed soon? Many thanks ๐Ÿ™๐Ÿฝ

danielroe commented 2 months ago

Would you be able to add a test in examples/app-vitest/test/build-false.e2e.spec.ts? ๐Ÿ™

danielroe commented 2 months ago

Thank you ๐Ÿ™

Can you explain a bit about why you would do this rather than passing that config to setup?

Al-Rozhkov commented 2 months ago

Thank you ๐Ÿ™

Can you explain a bit about why you would do this rather than passing that config to setup?

I wasn't sure how to build Nuxt manually and make setup use exact that build. I would appreciate your advice.

Also not sure why windows tests failed.