1.1.1 • Published 2 years ago
h8-reporter v1.1.1
Installation:
$ npm i jest h8-reporter -D
Usage:
package.json
...,
"scripts": {
"test": "jest"
},
"jest": {
"reporters": [
"default",
"h8-reporter"
]
},
...
__tests__/index.js
...
describe('describe title', () => {
it('should check test title (50)', () => { // add 50 score when test is passed
...
})
it('should check test title (50)', () => {
...
})
it('should check restriction rules (-30)', async () => { // reduce 30 score when test is passed
...
})
})