0.0.15 • Published 3 years ago

@asdgf/cli v0.0.15

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@asdgf/cli

A stupid simple way to test

No magic, no nonsense.

Usage

asdgf

Configuration

CLI

Command/optionTypeDescriptionExample
--globsstring[]Globs to analyze--globs "**/*.test.js"
--excludestring[]Globs to exclude--exclude "!foo.test.js"

Example:

asdgf --globs **/*.test.js

Config file

asdgf.config.js:

export default {
  globs: ['**/*.test.js'],
  exclude: ['!foo.test.js'],
  reporter: {
    /** Runs before all suites run */
    start: () => {
      console.log('start\n');
    },
    /** Runs before the suite starts, can be used for set up */
    suiteStart: ({name, only, tests}) => {
      console.log(`Starting suite: "${name}"`);
    },
    /** Runs after every ran test, whether it's skipped, passed, or failed */
    renderTest: (testResult) => {
      console.log(`  ${testResult.passed ? '✅' : '❌'} "${testResult.name}"`);
    },
    /** Runs after the entire suite has ran */
    suiteEnd: (testSuiteResult) => {
      console.log('\n')
    },
    /** Runs after all suites have ran */
    end: () => {
      console.log('end');
    }
  };
}
0.0.14

3 years ago

0.0.15

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.13

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago