Skip to content

Commit 9d0149b

Browse files
authored
docs: add instructions to run test in contributing guide (#58)
1 parent acb76e3 commit 9d0149b

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,34 @@ pnpm dev:backend # Backend API on :3000
3737
pnpm dev:mobile # React Native app
3838
```
3939

40+
### Running Tests
41+
42+
This project uses `pnpm` to run tests across different parts of the codebase.
43+
44+
#### Run all tests
45+
To execute all available tests:
46+
```bash
47+
pnpm -r test
48+
```
49+
50+
#### apps/backend
51+
The backend uses Vitest:
52+
```bash
53+
pnpm --filter @devcard/backend test
54+
pnpm --filter @devcard/backend test:watch
55+
```
56+
#### apps/mobile
57+
The mobile app uses Jest:
58+
```bash
59+
pnpm --filter @devcard/mobile test
60+
```
61+
#### apps/web
62+
Currently, the web app does not define a test script.
63+
64+
#### packages/shared
65+
The shared package does not include test scripts. It only provides linting and type checking.
66+
67+
4068
## Project Structure
4169

4270
```

0 commit comments

Comments
 (0)