si

skip-if

skipIf(condition, name, test)

Showing:

Popularity

Downloads/wk

190

GitHub Stars

10

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

1

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

skipIf(condition, name, test)

A small helper to make dynamic decisions on whether to skip tests. This might be useful in situations where a test is only applicable for certain environments.

Installation

npm install --save-dev skip-if # or yarn add --dev skip-if

Usage

const skipIf = require('skip-if');

skipIf(process.platform === 'darwin', 'test only for macOs', () => {
  expect(true).toBe(true)
})

// currying is also possible
const skipIfMac = skipIf(process.platform === 'darwin')
skipIfMac('test only for macOs', () => {
  expect(true).toBe(true)
})

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100