Testing with wallaby.js and Jest
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.idea/runConfigurations Initial commit May 15, 2015
__tests__ Update sum-test.js Sep 12, 2017
.gitignore Initial commit May 15, 2015
README.md Update README.md Oct 13, 2017
package.json Update package.json Aug 8, 2016
sum.js Restored original jest sample code May 15, 2015
wallaby.js Update wallaby.js Jun 7, 2018



Testing with wallaby.js and Jest


Install Jest

npm install

Configure wallaby.js

Create wallaby.js configuration file.

module.exports = function () {

  return {
    files: ['sum.js'],

    tests: ['__tests__/*.js'],

    env: {
      type: 'node',
      runner: 'node'

    testFramework: 'jest'

Please note that wallaby.js is using its own cache to run your tests from, not the local project folder, so you need to include all files (except node modules) that your tests need, for example __mocks__/*.*, etc.