@adobe/helix-testutils
v0.4.17
Published
Helix Testing Utilities
Downloads
520
Maintainers
Keywords
Readme
Helix Test Utilities
Status
Utility functions for testing Project Helix
Usage
condit
is a "conditional it
" that can be used in Mocha tests to specify conditions that need to be met to run the test. It is being used for integration tests that depend on the presence of environment variables.
const condit = require('@adobe/helix-testutils'); // add to your devDependencies
condit('This is an integration test', condit.hasenv('AUTH_TOKEN'), () => {
// do your testing here
});
Development
Build
npm install
Test
npm test
Lint
npm run lint