1.0.0 • Published 7 years ago
fixture-helper v1.0.0
Fixture Helper
It should be easy to use fixtures for your tests.
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.txtDev
yarn test
yarn lint
yarn build1.0.0
7 years ago