Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
currentTestName
1 parent deee83e commit e43458eCopy full SHA for e43458e
packages/expect/src/jest-extend.ts
@@ -35,6 +35,7 @@ function getMatcherState(
35
subsetEquality,
36
}
37
let task: Test | undefined = util.flag(assertion, 'vitest-test')
38
+ const currentTestName = task?.fullTestName ?? ''
39
40
if (task?.type !== 'test') {
41
task = undefined
@@ -43,6 +44,7 @@ function getMatcherState(
43
44
const matcherState: MatcherState = {
45
...getState(expect),
46
task,
47
+ currentTestName,
48
customTesters: getCustomEqualityTesters(),
49
isNot,
50
utils: jestUtils,
0 commit comments