Skip to content

Instantly share code, notes, and snippets.

@yannispanousis
Created November 18, 2015 11:36
Show Gist options
  • Save yannispanousis/c4191bbaf02c9e5d7fed to your computer and use it in GitHub Desktop.
Save yannispanousis/c4191bbaf02c9e5d7fed to your computer and use it in GitHub Desktop.
JavaScript Mocha 'this.currentTest' object inside hooks
{
"title": "Should allow me to log out",
"async": 0,
"sync": true,
"timedOut": false,
"pending": false,
"type": "test",
"file": "/home/yannis/git/lystable-frontend/e2e-test/team/auth-test.js",
"parent": "#<Suite>",
"ctx": "#<Context>",
"timer": {
"0": null
},
"duration": 2996,
"state": "passed"
}
@rpajaziti
Copy link

First, how do you get to print this.currentTest, when i try to print this inside a test, it says undefined.
Also can you tell me why is the async = 0, and sync true?
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment