# inline-mocha

> Run your mocha tests using `node mytest.js` without Mocha installed globally

Latest version **1.0.0** (published 2016-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install inline-mocha
pnpm add inline-mocha
yarn add inline-mocha
bun add inline-mocha
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-03-31 |
| First published | 2016-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Cloud9 |
| Maintainers | timjrobinson |
| Keywords | mocha, inline, mocha, no, global, mocha, test, node, test |

## Links

- npm: https://www.npmjs.com/package/inline-mocha
- Repository: https://github.com/cloud9ide/inline-mocha
- Homepage: https://github.com/cloud9ide/inline-mocha#readme
- Issues: https://github.com/cloud9ide/inline-mocha/issues
- npm.io page: https://npm.io/package/inline-mocha

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-03-31

## README

# inline-mocha

Run your tests using `node mytest.js` instead of `mocha mytest.js`, and you don't need Mocha installed globally. Useful for IDE's such as Cloud9 where the run button runs the current file using node. You can now run your tests with one click.  

# Installation

```
npm install inline-mocha --save-dev
```

# Usage

```
require("inline-mocha")(module);

var assert = require("assert");
describe("foo test", function() {
    it("Should equal 2", function() {
        assert.equal(1 + 1, 2);
    });
});
```

```
node mytest.js
```

---
_Source: https://npm.io/package/inline-mocha · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
