Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mocha-runner-hooker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-runner-hooker - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

0

build/index.d.ts
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";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc