Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add instructions for running tests #2587

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ Now close and re-open the workspace.
| pnpm prisma:studio | Explore data in the database using a visual editor. |
| pnpm storybook | Start [Storybook](#ui-workflow-storybook) in your browser. |

### Running tests locally

To run the tests locally, it's best to start the development server by running `pnpm dev`.
Then, in a separate terminal, set the environment variable `TEST_URL` to the URL of the development server (e.g., `http://localhost:3000`)

```bash
# Linux
export TEST_URL=http://localhost:3000
# Windows
$env:TEST_URL = "http://localhost:3000"
```

Then you can run the tests by executing `pnpm test`.

### Workflow for editing the database schema

1. Prototype your new feature by making the necessary changes to `schema.prisma`.
Expand Down
Loading