# ember-test-container

> Light-weight container for unit testing objects that rely on Ember's Container

Latest version **0.1.0** (published 2015-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-test-container
pnpm add ember-test-container
yarn add ember-test-container
bun add ember-test-container
```

## 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.1.0 |
| Published | 2015-04-19 |
| First published | 2015-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brian Cardarella |
| Maintainers | bcardarella |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-test-container
- Repository: https://github.com/bcardarella/ember-test-container
- Issues: https://github.com/bcardarella/ember-test-container/issues
- npm.io page: https://npm.io/package/ember-test-container

## Dependencies (1)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.0.0

## Recent versions

- 0.1.0 (latest) — 2015-04-19

## README

# Ember-test-container

Light-weight container for unit testing objects that rely on Ember's
container.

## Installation

`npm install ember-test-container --save-dev`

## Usage

In any unit test import and use the `buildContainer` function

```javasccript
import Ember from 'ember';
import { module, test } from 'qunit';
import buildContainer from 'dummy/tests/helpers/build-container';
import MyUtil from 'my-app/utils/my-util';

var User;

module('My Util', {
  setup: function() {
    MyUtil.reopen({
      container: buildContainer()
    });
  }
});
```

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