1.1.3 • Published 4 years ago
hacktiv8-reporter v1.1.3
Installation:
$ npm i jest hacktiv8-reporter -D
Usage:
package.json
...,
"scripts": {
"test": "jest"
},
"jest": {
"reporters": [
"default",
"hacktiv8-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
...
})
})