@adobe/helix-testutils

0.4.17 • Public • Published

Helix Test Utilities

Status

codecov CircleCI GitHub license GitHub issues LGTM Code Quality Grade: JavaScript

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

Readme

Keywords

none

Package Sidebar

Install

npm i @adobe/helix-testutils

Weekly Downloads

34

Version

0.4.17

License

Apache-2.0

Unpacked Size

65 kB

Total Files

17

Last publish

Collaborators

  • dylandepass
  • djaeggi
  • adobehalls
  • fullcolorcoder
  • marbec
  • tripod
  • garthdb
  • lazd
  • adobe-admin
  • patrickfulton
  • trieloff
  • shazron
  • krisnye
  • dcpfsdk
  • natebaldwin
  • devongovett
  • aspro83
  • symanovi
  • dpfister
  • stefan-guggisberg
  • korra
  • rofe
  • kptdobe