Skip to content

KidkArolis/ava-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"
      ]
    }
  }

About

Config and ava compatibility, automatically configure NODE_ENV and NODE_CONFIG_DIR.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors