1.1.0 • Published 8 years ago

ava-config v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

ava-config

If you're using the config package in your project, you might have run into an issue with ava where your config is not required from the right directory, due to how ava is changing process.cwd to be the dir of each test.

Prerequiring this package will automagically set NODE_ENV=test and NODE_CONFIG_DIR=closest/config/default.yml

Usage

$ npm install --save-dev ava-config

Add to your package.json

  {
    ...
    "ava": {
      "require": [
        "ava-config"
      ]
    }
  }
1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago