Skip to content

Commit

Permalink
chore: update Readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Jul 12, 2024
1 parent c0345d8 commit c4b356a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@ npm start # or
docker compose up
```

Run all e2e tests
Run all e2e tests. In order for this to work locally, you need to change the [Node version](/Dockerfile#1) from the RedHat to `node:latest` for example. Then run the following command:

```bash
npm run test
```

Open cypress, then run the container (set the port [here](https://github.com/UniversityOfHelsinkiCS/kliksutin/blob/ffe33eee1f187f260cd27c587825fbe4771430ba/cypress/support/e2e.ts#LL19))
Run e2e tests in interactive Cypress environment. In order for this to work correctly change the baseURL in the [cypress.config](cypress.config.js#8) to `localhost:3000`. Then you can run the following command:

```bash
npm run test:cypress
```

Run eslint
Run static code analysis tools. Each commit triggers these runs through the pre-commit hooks.

```bash
npm run lint
npm run lint # Run eslint
npm run format # Run prettier
```

## Development
Expand Down

0 comments on commit c4b356a

Please sign in to comment.