Skip to content

HugoDF/ava-pass-fail-test-missing-env-var

Repository files navigation

AVA: pass or fail a test if an environment variable is missing

Requirements

  • Node 10
  • Yarn 1.x or npm

Setup

  1. Clone the repository
  2. Run yarn or npm install installs all required dependencies.

npm scripts

Equivalent npm run <script> should also work

  • yarn test will run the tests in test.js (all should pass)
  • yarn fail will run the tests with the required environment variable and therefore will fail
  • yarn lint will lint all of the files with xo
  • yarn format will run lint with --fix option on all the examples files (and tests).

LICENSE

Code is licensed under the MIT License.

About

AVA: pass or fail a test if an environment variable is missing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published