add instructions for local e2e env vars (#184)

* add instructions for e2e env vars

* add env var to session

* Update README.md
This commit is contained in:
vincanger 2024-06-21 16:49:17 +02:00 committed by GitHub
parent dd42334c7c
commit 3a153a40bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,11 +18,13 @@ Start your Wasp DB and leave it running:
cd ../app && wasp db start
```
Open another terminal and start the Wasp app:
Open another terminal and start the Wasp app with the environment variable set to skip email verification in development mode:
```shell
cd app && wasp start
cd app && SKIP_EMAIL_VERIFICATION_IN_DEV=true wasp start
```
NOTE: When using the email auth method a verification link is sent when the user registers, or logged to the console if you're using the default Dummy provider. You must click this link to complete registration. Setting SKIP_EMAIL_VERIFICATION_IN_DEV to "true" skips this verification step, allowing you to automatically log in. This step must be skipped when running tests, otherwise the tests will hang and fail as the verification link is never clicked!
In another terminal, run the local e2e tests:
```shell
cd e2e-tests && npm run local:e2e:start