All Projects → wallabyjs → wallaby-jest-sample

wallabyjs / wallaby-jest-sample

Licence: other
Testing with wallaby.js and Jest

Programming Languages

javascript
184084 projects - #8 most used programming language

Wallaby.js

Testing with wallaby.js and Jest

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].