add docs on testing (#833)

This commit is contained in:
Will Chen
2025-08-05 14:39:38 -07:00
committed by GitHub
parent bbc50197c2
commit 7f13157128

View File

@@ -23,3 +23,39 @@ npm install
```sh ```sh
npm start npm start
``` ```
## Testing
### Unit tests
```sh
npm test
```
### E2E tests
Build the app for E2E testing:
```sh
npm run pre:e2e
```
> Note: you only need to re-build the app when changing the app code. You don't need to re-build the app if you're just updating the tests.
Run the whole e2e test suite:
```sh
npm run e2e
```
Run a specific test file:
```sh
npm run e2e e2e-tests/context_manage.spec.ts
```
Update snapshots for a test:
```sh
npm run e2e e2e-tests/context_manage.spec.ts -- --update-snapshots
```