-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa51449
commit ff1de62
Showing
5 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM node:18 | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN yarn | ||
|
||
CMD [ "yarn", "test" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
https://github.com/vitest-dev/vitest/issues/3077#issuecomment-1867306736 | ||
|
||
```sh | ||
docker build . -t vitest | ||
docker run -it -v ./src:/app/src vitest /bin/bash | ||
``` | ||
|
||
Play with configs, my findings: | ||
1. It is more likely to hang when test cases failed. (not sure, you can try comment & uncomment `data-testid="message"` in Message.tsx) | ||
2. Node 18/19 will hang, while it seems that there are no issues with version 20+. | ||
3. Setting `globals: true` and using the global vitest function increases the possibility of hanging. | ||
4. The higher count of tests, the higher the chance of hanging. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters