Created
March 5, 2017 17:57
-
-
Save ilkka/02fc0c3c29750106e2cb28ba8ec3029f to your computer and use it in GitHub Desktop.
Default mocha config, all files go in `./test/`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("dummy", function () { | |
before(function() { | |
console.log("dummy before"); | |
}); | |
it("is a dummy", function() { | |
console.log("dummy test"); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before(function() { | |
console.log("global before"); | |
}); | |
after(function() { | |
console.log("global after"); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("other", function () { | |
before(function() { | |
console.log("other before"); | |
}); | |
it.only("is a other", function() { | |
console.log("other test"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment