@@ -52,8 +52,21 @@ see them reflected in real-time.
52
52
The development stack mounts volumes locally for persisting storage under
53
53
` .volumes ` . Clear this directory to reset ClickHouse and MongoDB storage.
54
54
55
+ ### Windows
56
+
57
+ If you are running WSL 2, Hot module reload on Nextjs (Frontend) does not work
58
+ out of the box on windows when run natively on docker. The fix here is to open
59
+ project directory in WSL and run the above docker compose commands directly in
60
+ WSL. Note that the project directory should not be under /mnt/c/ directory. You
61
+ can clone the git repo in /home/{username} for example.
62
+
63
+ To develop from WSL, follow instructions
64
+ [ here] ( https://code.visualstudio.com/docs/remote/wsl ) .
65
+
55
66
## Testing
56
67
68
+ ### Integration Tests
69
+
57
70
To run the tests locally, you can run the following command:
58
71
59
72
``` bash
@@ -66,16 +79,14 @@ If you want to run a specific test file, you can run the following command:
66
79
make dev-int FILE=checkAlerts
67
80
```
68
81
69
- ### Windows
82
+ ### Unit Tests
70
83
71
- If you are running WSL 2, Hot module reload on Nextjs (Frontend) does not work
72
- out of the box on windows when run natively on docker. The fix here is to open
73
- project directory in WSL and run the above docker compose commands directly in
74
- WSL. Note that the project directory should not be under /mnt/c/ directory. You
75
- can clone the git repo in /home/{username} for example.
84
+ To run unit tests or update snapshots, you can go to the package you want (ex.
85
+ common-utils) to test and run:
76
86
77
- To develop from WSL, follow instructions
78
- [ here] ( https://code.visualstudio.com/docs/remote/wsl ) .
87
+ ``` bash
88
+ yarn dev:unit
89
+ ```
79
90
80
91
## Additional support
81
92
0 commit comments