Created
April 26, 2019 15:40
-
-
Save jrgleason/83c30e6651b83a3521cb767a834f763a to your computer and use it in GitHub Desktop.
How I run Mocha
This file contains 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
mocha --delay --exit ./test/suite.js |
This file contains 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
import chai from "chai"; | |
import sinon from "sinon"; | |
import { Test } from "<Tested Class location>"; | |
describe("Testing", ()=>{ | |
.... | |
}); |
This file contains 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
async function wire(){ | |
await import("./components/Test.spec"); // eslint-disable-line | |
run(); | |
} | |
wire(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment