End to End testing

Hi! I'm trying to learn how to use the E2E testing tools provided by Nuxt 3 https://nuxt.com/docs/getting-started/testing#end-to-end-testing. But I'm having a hard time understanding a few things... 1. The subchapter "Setup" am I suposed to run the "my-test" example with "vitest" ? I get the error "404 Cannot find any path matching /app-beta/_nuxt/builds/meta/test.json" and I don't understand why it's not created. 2. In the subchapter "Testing in a Browser" I'm told about playwright, here my test examples works. But why does it build my Nuxt before every test, Can I stop that? and Can I run the tests against an url? My goal is to setup an environment that runs the tests before commit but and on a live env but I'm kinda lost 🤔 Thanks!
Nuxt
Testing · Get Started with Nuxt
How to test your Nuxt application.
2 Replies
Cute Viking
Cute VikingOP7mo ago
I resolved the first question. My vitest config included "environment: 'nuxt'"
MagRat_04
MagRat_047mo ago
This helped, thank you
Want results from more Discord servers?
Add your server