# jcmp-test-env

> provides a jc3:mp test environment using the jcmp-stubs package

Latest version **0.10.1** (published 2017-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install jcmp-test-env
pnpm add jcmp-test-env
yarn add jcmp-test-env
bun add jcmp-test-env
```

Provides the command `jcmp-test-env`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.1 |
| Published | 2017-01-14 |
| First published | 2017-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jan Christophersen |
| Maintainers | rukenshia |
| Keywords | jc3mp, jcmp |

## Links

- npm: https://www.npmjs.com/package/jcmp-test-env
- Repository: https://github.com/Rukenshia/jcmp-test-env
- Homepage: https://github.com/Rukenshia/jcmp-test-env#readme
- Issues: https://github.com/Rukenshia/jcmp-test-env/issues
- npm.io page: https://npm.io/package/jcmp-test-env

## Dependencies (2)

- [jcmp-stubs](https://npm.io/package/jcmp-stubs.md) ^2.6.0
- [custom-logger](https://npm.io/package/custom-logger.md) ^0.3.1

## Recent versions

- 0.10.1 (latest) — 2017-01-14
- 0.10.0 — 2017-01-14
- 0.9.2 — 2017-01-14

## README

# jcmp-test-env
provides a jc3:mp server test environment using the jcmp-stubs package.

## Installation
Install this package as a `devDependency` to your jc3:mp package:

```
npm install --save-dev jcmp-test-env
```

## Usage
When writing your tests, just import this to the header file:

```javascript
const { TestEnvironment } = require('jcmp-test-env');
new TestEnvironment('server').initializeEnvironment((k, v) => global[k] = v);
```

you can then run your tests like you normally do, i.e. with mocha. you could simply require your whole `main.js` file from your package.

## Example
You can see the `jcmp-test-env` package live at the [command manager](https://gitlab.nanos.io/jc3mp-packages/command-manager/tree/master/test)

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