An open API service indexing awesome lists of open source software.

https://github.com/hugodf/ava-pass-fail-test-missing-env-var

AVA: pass or fail a test if an environment variable is missing
https://github.com/hugodf/ava-pass-fail-test-missing-env-var

ava avajs e2e-testing

Last synced: 22 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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 ` 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](https://github.com/xojs/xo)
- `yarn format` will run lint with `--fix` option on all the examples files (and tests).

## LICENSE

Code is licensed under the [MIT License](./LICENSE).