AletheiaFact / AletheiaFact/aletheia

e2e tests doesn't support nextjs

Aperta
#569 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
tech tech-debt
Lingua principale
TypeScript
Stelle
55
Fork
20
Merge medio
2g 6h
PR unite (30g)
2

Descrizione

## Background Information
Right now, the tests never finish when NextServer is properly loaded. The "workaround" is to set a wrong path so NextServer never tries to boot. But this leaves the following error:

```
[Nest] 27924 - 07/18/2022, 11:19:56 AM ERROR [ViewService] Failed to load NextServer
[Nest] 27924 - 07/18/2022, 11:19:56 AM ERROR [ViewService] Error: Could not find a production build in the '/Users/msantos/workspace/aletheia_fact/.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
```

## How
The solution seems to be mocking the ViewService so the NextServer is never booted

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.