Skip to content

Commit

Permalink
fix(core): bind class instances to methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Jul 7, 2022
1 parent a80b685 commit 5a1516e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ export class Test {
if (this.afterEach) suite.each.teardown(this.afterEach.bind(this))

this.testNames.forEach(testName => {
const japaTest = test(testName, this[testName].bind(this)).timeout(this.timeout)
const japaTest = test(testName, this[testName].bind(this)).timeout(
this.timeout,
)

if (this.runOnly[0] === '*') {
return
Expand Down

0 comments on commit 5a1516e

Please sign in to comment.