# dng-test-utils

> Angular Test Utilities

Latest version **2.0.0** (published 2017-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install dng-test-utils
pnpm add dng-test-utils
yarn add dng-test-utils
bun add dng-test-utils
```

## 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 | 2.0.0 |
| Published | 2017-11-07 |
| First published | 2015-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | dougflip |
| Maintainers | dougflip |
| Keywords | Angular, Unit-Test, Karma |

## Links

- npm: https://www.npmjs.com/package/dng-test-utils
- npm.io page: https://npm.io/package/dng-test-utils

## Dependencies (1)

- [karma](https://npm.io/package/karma.md) ^1.3.0

## 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

- 2.0.0 (latest) — 2017-11-07
- 1.1.1 — 2017-03-24
- 1.1.0 — 2017-01-26
- 1.0.0 — 2017-01-20
- 0.3.0 — 2015-12-03
- 0.2.0 — 2015-11-13
- 0.1.0 — 2015-11-13

## README

DNG Test Utils
====================

## Overview

Reduces boiler plate in Angular test code.
Specifically regarding mocking dependencies and working with promises.

## Install

```
npm install -D dng-test-utils
```

## Setup

The bare bones setup looks something like this:

```
import dngTestUtils from 'dng-test-utils';
import moduleToTest from './module-to-test';

// ...then in your top level describe block...

beforeEach(dngTestUtils.init(moduleToTest.name, [nullMocks], { customMocks }));
```

The [sample test file](./test/dng-test-utils_test.js) has much more detail.

## More Info

- [Docs](./docs/) - more in depth reading and tips.
- [Source Code](./src)

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