I have file mycode.js and mycode.test.js. I want to test it in Node console (repl) - (no browser), in karma style - mycode.test.js looks as below:
var expect = require('expect');
var mycode = require("./mycode");
describe("mycode", () => {
it("should properly run tests", () => {
expect(1).toBe(1);
});
});
what is the simplest possible setup to achieve this?
Aucun commentaire:
Enregistrer un commentaire