You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import*asLabfrom'@hapi/lab';import*asCodefrom'@hapi/code';const{ describe, it }=(exports.lab=Lab.script());constexpect=Code.expect;importfunfrom'./bug';describe('Foo',()=>{it('operation',async()=>{constresult=fun(2,2);expect(result).to.equal(4);});});
Support plan
Context
@hapi/[email protected]
/@hapi/[email protected]
What are you trying to achieve or the steps to reproduce?
1 Create a
bug.ts
file with the content:bug.ts file
2 Create a bug.test.ts file with:
bug.test.ts file
3 Create a .labrc.js file with the content:
.labrc.js file
What was the result you got?
If I run the code with:
I get:
What result did you expect?
I would expect a 100% coverage thanks to the
coverage-predicates
configuration.Note that if I change the
bug.ts > fooBar
to a named functions like this:With the same command I get:
The text was updated successfully, but these errors were encountered: