fixture-helper

1.0.0 • Public • Published

Fixture Helper

It should be easy to use fixtures for your tests.

Build Status

API

read(filePath)

filePath string

Returns contents of filePath as string.

import { read } from 'fixture-helper'
read('foo/bar.txt')

setBaseDir(dirPath)

dirPath string

Sets the base directory to use when reading files.

import { setBaseDir, read } from 'fixture-helper'
setBaseDir('foo')
read('bar.txt')  // foo/bar.txt

Dev

yarn test
yarn lint
yarn build

Readme

Keywords

none

Package Sidebar

Install

npm i fixture-helper

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.27 kB

Total Files

14

Last publish

Collaborators

  • reergymerej