@adobe/helix-testutils
Helix Testing Utilities
Last updated 3 months ago by trieloff .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adobe/helix-testutils 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.4.1                                ...           latest (3 months ago)

6 Versions

  • 0.4.1                                ...           3 months ago
  • 0.4.0                                ...           5 months ago
  • 0.3.2                                ...           6 months ago
  • 0.3.1                                ...           7 months ago
  • 0.3.0                                ...           a year ago
  • 0.2.0                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |