Sunday, August 12, 2018

Configure Jasmine with node.js

This module allows you to run Jasmine specs for your Node.js code. The output will be displayed in your terminal.
npm install -g jasmine
To initialize a project for Jasmine
jasmine init
To seed your project with some examples
jasmine examples
To run your test suite
jasmine
BDD Example
describe("A suite", function() {
  it("contains spec with an expectation", function() {
    expect(true).toBe(true);
  });
});

No comments:

Post a Comment

How to check whether operating system is 64 bit or 32bit?

What is 32 and 64 bit operating system? The terms 32-bit and 64-bit refer to the way a computer's processor that is CPU, handles info...