#End to End testing

2 messages · Page 1 of 1 (latest)

hasty plume
#

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

How to test your Nuxt application.

hasty plume
#

I resolved the first question. My vitest config included "environment: 'nuxt'"