Opinionated SaaS quick-start with pre-built user account and organization system for full-stack application development in React, Node.js, GraphQL and PostgreSQL. Powered by PostGraphile, TypeScript, Apollo Client, Graphile Worker, Graphile Migrate, GraphQL Code Generator, Ant Design and Next.js
Summary
While developing my system I want to be able to run the e2e tests against my development environment and I expect them to pass.
Steps to reproduce
In first terminal:
export UID; yarn docker setup
echo "ENABLE_CYPRESS_COMMANDS=1" >> docker/.env
export UID; yarn docker start
In second terminal:
docker compose exec server bash
sudo apt update;sudo apt install libatk-bridge2.0-0 libatk1.0-0 libasound2 libgbm1 libgtk-3-0 libnss3 xvfb
@app/e2e/node_modules/cypress/bin/cypress install
yarn e2e run run
Expected results
That the tests pass
Actual results
Additional context
Host machine is ubuntu 22.04 with node 18.12.1
Possible Solution
Those tests pass if I run
yarn build; NODE_ENV=test yarn start