Cute Viking
Cute Viking
NNuxt
Created by Cute Viking on 5/30/2024 in #❓・help
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!
3 replies