New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@asdgf/cli

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asdgf/cli

A stupid simple way to test

  • 0.0.15
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by700%
Maintainers
1
Weekly downloads
 
Created
Source

@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');
    }
  };
}

Keywords

FAQs

Package last updated on 21 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc