Skip to content

Commit 7b6f00a

Browse files
committed
emit hooks for parallel runs
1 parent b8d24f3 commit 7b6f00a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/selianize/src/suite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export function emit(suite, tests, options = config, snapshot) {
4747
if (suite.parallel) {
4848
testsCode = testsCode.map((code, index) => ({
4949
name: tests[suite.tests[index]].emitted.name,
50-
code: code.replace(
50+
code: `${code.replace(
5151
/^it/,
5252
`jest.setTimeout(${suite.timeout * 1000});test`
53-
),
53+
)}${hookResults}${snapshot ? snapshot.hook : ''}`,
5454
}))
5555
return res(testsCode)
5656
}

0 commit comments

Comments
 (0)