How to use fancy-test - 2 common examples

To help you get started, we’ve selected a few fancy-test examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oclif / oclif / test / run.js View on Github external
describe(cmd, () => {
    fancy
    .retries(CI ? 1 : 0)
    .do(() => {
      switch (cmd) {
      case 'base':
        build(cmd, name)
        sh.exec('yarn test')
        break
      case 'plugin':
        build(cmd, name)
        sh.exec('yarn test')
        sh.exec('node ./bin/run hello')
        sh.exec('node ./bin/run')
        sh.exec('node ./bin/run --help')
        sh.exec('npm pack --unsafe-perm')
        break
      case 'single':
github HAECHI-LABS / henesis-cli / src / compiler / solc.spec.ts View on Github external
context('when file does not end with .sol', () => {
      fancy
        .do(async () => {
          const path = __dirname + '/../../templates/contract/example.notsol';
          await compileSol(path, ({ solcVersion: '0.4.12' } as any) as Option);
        })
        .catch('it is not a solidity file.')
        .it('should throw not sol file error');
    });
  });

fancy-test

extendable utilities for testing

MIT
Latest version published 1 month ago

Package Health Score

81 / 100
Full package analysis

Popular fancy-test functions