The public web UI of the NSHM project
For details of the development setup, please see DEVELOPMENT.
In the project directory, you can run:
Runs the app in the development mode.
This will print a link for you to open in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
You need an appropriate .env file to run yarn dev. You can base it on .env.example
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Run this whenever any of the GraphQL queries has been modified.
Ensure that VITE_MSW=test is set in .env or wherever you manage your environment variables. This will make vite use the mocked graphql handlers in ./src/mocks/handlers.ts, replicating how we run cypress on GitHub.
yarn dev --host
yarn run cypress open
and choose E2E tests.