https://github.com/wallabyjs/wallaby-jest-sample
Testing with wallaby.js and Jest
https://github.com/wallabyjs/wallaby-jest-sample
Last synced: 8 months ago
JSON representation
Testing with wallaby.js and Jest
- Host: GitHub
- URL: https://github.com/wallabyjs/wallaby-jest-sample
- Owner: wallabyjs
- Created: 2015-05-15T06:26:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-17T06:25:10.000Z (over 6 years ago)
- Last Synced: 2025-03-25T18:53:56.976Z (9 months ago)
- Language: JavaScript
- Homepage: http://wallabyjs.com
- Size: 26.4 KB
- Stars: 20
- Watchers: 3
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://wallabyjs.com)
Testing with wallaby.js and Jest
==================================

## Install Jest
`npm install`
## Configure wallaby.js
Create [wallaby.js configuration file](https://github.com/wallabyjs/public#configuration-file-format).
```javascript
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.**