https://github.com/ydcjeff/vitest-setup-hooks
https://github.com/ydcjeff/vitest-setup-hooks
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ydcjeff/vitest-setup-hooks
- Owner: ydcjeff
- Created: 2021-12-24T13:45:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-08T08:28:17.000Z (over 1 year ago)
- Last Synced: 2024-12-17T23:09:47.954Z (5 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Vitest setup hooks
Happening
Expected```sh
stdout | unknown test
global before all - expected to run before ALL testsstdout | 1.test.js > test 1
global before each - exptected to run before EACH test filestdout | 1.test.js > test 1
normal test 1stdout | 1.test.js > test 1
global after each - expected to run after EACH test filestdout | unknown test
global after all - expected to run after ALL testsstdout | unknown test
global before all - expected to run before ALL testsstdout | 2.test.js > test 2
global before each - exptected to run before EACH test filestdout | 2.test.js > test 2
normal test 2stdout | 2.test.js > test 2
global after each - expected to run after EACH test filestdout | unknown test
global after all - expected to run after ALL tests
``````sh
stdout | unknown test
global before all - expected to run before ALL testsstdout | unknown test
global before each - exptected to run before EACH test filestdout | 1.test.js > test 1
normal test 1stdout | 2.test.js > test 2
normal test 2stdout | unknown test
global after each - expected to run after EACH test filestdout | unknown test
global after all - expected to run after ALL tests
```