Skip to content

FoveaCentral/sample-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample-ci

The simplest Continuous-Integration example for Node.js

Installation

  1. Install the Node package manager:

    brew install npm
  2. Install Jest (a popular JavaScript Testing Framework):

    npm install --save-dev jest
  3. Check the install by running the tests:

    npm test

    If all is well, you should see output similar to this:

    $ npm test
    
    > test
    > jest
    
     PASS  ./sum.test.js
      ✓ adds 1 + 2 to equal 3 (1 ms)
    
    Test Suites: 1 passed, 1 total
    Tests:       1 passed, 1 total
    Snapshots:   0 total
    Time:        0.163 s
    Ran all test suites.

Credits

Adapted from Jest's Getting Started tutorial.

Releases

No releases published

Packages

No packages published