Skip to content

Commit 860045c

Browse files
committed
feat: dynamic import w/ variables
1 parent c5d0a8f commit 860045c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/jestPerTestSetup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ beforeAll(async () => {
2525
page.on('console', onConsole)
2626

2727
const testPath = expect.getState().testPath
28-
const testName = slash(testPath).match(/playground\/(\w+)\//)?.[1]
28+
const testName = slash(testPath).match(/playground\/([\w-]+)\//)?.[1]
2929

3030
// if this is a test placed under playground/xxx/__tests__
3131
// start a vite server in that directory.

0 commit comments

Comments
 (0)