[wip] more test

This commit is contained in:
LouisLam
2021-10-05 20:27:43 +08:00
parent 98436f91b5
commit 73bf1216d1
5 changed files with 53 additions and 21 deletions

View File

@@ -150,8 +150,14 @@ The data and socket logic are in `src/mixins/socket.js`.
# Unit Test
Yes, no unit test for now. I know it is very important, but at the same time my spare time is very limited. I want to implement my ideas first. I will go back to this in some points.
It is an end-to-end testing. It is using Jest and Puppeteer.
```
npm run build
npm test
```
By default, the Chromium window will be shown up during the test. Specifying `HEADLESS_TEST=1` for terminal environments.
# Update Dependencies