# blue-tape-fixture

> Write fixture tests with blue-tape

Latest version **0.3.0** (published 2016-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install blue-tape-fixture
pnpm add blue-tape-fixture
yarn add blue-tape-fixture
bun add blue-tape-fixture
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2016-07-19 |
| First published | 2016-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | unional |
| Keywords | blue-tape, fixture |

## Links

- npm: https://www.npmjs.com/package/blue-tape-fixture
- Repository: https://github.com/unional/blue-tape-fixture
- Issues: https://github.com/unional/blue-tape-fixture/issues
- npm.io page: https://npm.io/package/blue-tape-fixture

## Recent versions

- 0.3.0 (latest) — 2016-07-19
- 0.2.0 — 2016-07-12
- 0.1.9 — 2016-07-12
- 0.1.8 — 2016-07-12
- 0.1.7 — 2016-07-12
- 0.1.6 — 2016-07-12
- 0.1.5 — 2016-07-12
- 0.1.4 — 2016-07-12
- 0.1.3 — 2016-07-12
- 0.1.2 — 2016-07-12
- 0.1.1 — 2016-07-12
- 0.1.0 — 2016-06-19
- 0.0.3 — 2016-06-19

## README

# blue tape fixture

[![npm version](https://badge.fury.io/js/blue-tape-fixture.svg)](https://badge.fury.io/js/blue-tape-fixture)
[![Build Status](https://travis-ci.org/unional/blue-tape-fixture.svg?branch=master)](https://travis-ci.org/unional/blue-tape-fixture)

Helps you to easily write fixture tests.

## What is Fixture Test

Fixture tests are tests that require access to some files. The tests may write files and in that case the files can be compared with a baseline (i.e. Baseline Tests)

## Usage

```ts
import tape = require('blue-tape');
import fixture from 'blue-tape-fixture';

// Point to the base folder which contain the fixtures.
const ftest = fixture(tape, './src/_fixture_/cases');

// You can also use absolute path.
// const ftest = fixture(process.env.PWD, 'fixture/cases');

ftest('test name', 'fixture-name', (t, path) => {
  // t is blue-tape test.
  // path is the path to the fixture-name folder.
  // ...test away
});
```

## Contribute

```sh
# right after fork
npm install

# begin making changes
npm run watch

```

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