mocha-runner-hooker
Advanced tools
Comparing version 1.0.1 to 1.0.2
import { RunnerHelper } from './src/hooker'; | ||
export default RunnerHelper; |
@@ -0,0 +0,0 @@ "use strict"; |
declare const _default: void; | ||
export default _default; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare class GlobalHelper { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export type HookType = { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare class Options { |
@@ -0,0 +0,0 @@ "use strict"; |
export {}; |
@@ -0,0 +0,0 @@ "use strict"; |
export {}; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "mocha-runner-hooker", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Additional functionality for each mocha test by hooks", | ||
@@ -5,0 +5,0 @@ "main": "./build/index", |
# mocha-runner-hooker | ||
![Released](https://github.com/udarrr/mocha-runner-hooker/workflows/Create%20tagged%20release/badge.svg) | ||
## Simple hooker for mocha | ||
@@ -13,4 +15,8 @@ | ||
- No necessary add repeated hooks in each test just do it once in mocha-runner-hooker. | ||
- Or add new functionality for all your 1000 test cases through mocha-runner-hooker | ||
- No necessary add repeated hooks in each test just do it once in mocha-runner-hooker. | ||
- Or add new functionality for all your 1000 test cases through mocha-runner-hooker | ||
- Works with top level and nested describes (isTopLevelSuiteIncluded option) | ||
- Supported globalSetup functions array (the same like hooks) | ||
- Supported globalTeardown functions array (the same like hooks) | ||
- Supported custom reporter and substring title filter for describes | ||
@@ -20,3 +26,3 @@ ```javascript | ||
describe('Suite', function () { | ||
it('1', async () => { | ||
it('Test 1', async () => { | ||
console.log('test 1'); | ||
@@ -37,3 +43,3 @@ }); | ||
it('1', async () => { | ||
it('Test 1', async () => { | ||
console.log('test 1'); | ||
@@ -47,3 +53,3 @@ }); | ||
```javascript | ||
//testRunner.js or .ts | ||
//testRunner.js | ||
import {RunnerHelper} from 'mocha-runner-hooker'; | ||
@@ -90,3 +96,3 @@ | ||
```json | ||
"testRunner": "mocha ./runners/testRunner.js ./test/test.js --no-exit || exit 0", | ||
"testRunner": "mocha ./testRunner.js ./tests/test.js --no-exit || exit 0", | ||
``` | ||
@@ -93,0 +99,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122
27169