Pass the test obj to the test function
parent
a71feba251
commit
149be7074d
|
@ -60,7 +60,7 @@ const metaltest = (title) => {
|
||||||
for (const test of tests) {
|
for (const test of tests) {
|
||||||
try {
|
try {
|
||||||
for (const fn of before) await fn()
|
for (const fn of before) await fn()
|
||||||
await test.fn()
|
await test.fn(test)
|
||||||
stats('success', test)
|
stats('success', test)
|
||||||
notify(reporters, 'success', test)
|
notify(reporters, 'success', test)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue