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
- Host: GitHub
- URL: https://github.com/hugodf/ava-pass-fail-test-missing-env-var
- Owner: HugoDF
- License: mit
- Created: 2020-04-21T16:26:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:39:41.000Z (over 2 years ago)
- Last Synced: 2025-02-13T21:30:23.541Z (2 months ago)
- Topics: ava, avajs, e2e-testing
- Language: JavaScript
- Homepage:
- Size: 1.23 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).