File tree Expand file tree Collapse file tree 4 files changed +167
-874
lines changed Expand file tree Collapse file tree 4 files changed +167
-874
lines changed Original file line number Diff line number Diff line change 44
44
"eslint-plugin-react" : " ^7.33.2" ,
45
45
"eslint-plugin-react-hooks" : " ^4.6.0" ,
46
46
"fs-extra" : " ^11.1.0" ,
47
- "vitest" : " ^1.0.4 " ,
47
+ "vitest" : " ^2.1.2 " ,
48
48
"playwright-chromium" : " ^1.39.0" ,
49
49
"prettier" : " ^2.8.8" ,
50
50
"prettier-plugin-organize-imports" : " ^3.2.3" ,
Original file line number Diff line number Diff line change 99
99
"eslint-plugin-react-hooks" : " ^4.6.0" ,
100
100
"fastify" : " ^4.24.2" ,
101
101
"gitpkg" : " ^1.0.0-beta.2" ,
102
- "vitest" : " ^0.34.6 " ,
102
+ "vitest" : " ^2.1.2 " ,
103
103
"npm-run-all" : " ^4.1.5" ,
104
104
"pino-pretty" : " ^8.1.0" ,
105
105
"prettier" : " ^2.7.1" ,
Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ let err: Error
21
21
export const port = 3001 + parseInt ( process . env . VITEST_WORKER_ID ! ) - 1
22
22
export const rootURL = `http://localhost:${ port } `
23
23
24
- beforeAll ( async ( { filepath } ) => {
25
- const testPath = filepath !
24
+ beforeAll ( async ( suite ) => {
26
25
// eslint-disable-next-line @typescript-eslint/prefer-regexp-exec
27
- const testName = slash ( testPath ) . match ( / t e s t - a p p s \/ ( [ \w - ] + ) \/ / ) ?. [ 1 ]
26
+ const testName = slash ( suite . file . filepath ) . match ( / t e s t - a p p s \/ ( [ \w - ] + ) \/ / ) ?. [ 1 ]
28
27
29
28
// if this is a test placed under test-apps/xxx/test/
30
29
// start a fastify server in that directory.
You can’t perform that action at this time.
0 commit comments