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

bft

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bft

bloat-free-testrunner

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

bft

bloat-free-testrunner for node.js

usage

npx bft test.js test/foobar.js path/to/test/file.js
// test.js

const assert = require('assert').strict;

test('this a test case', () => {
   assert.strictEqual(42, 42);
});

test('another test', async () => {
   const expected = 'foobar';
   const actual = await yourCodeUnderTest();
   assert.strictEqual(actual, expected);
});

test('i do not like the built-in assert module', () => {
   throw new Error('no problem; just thrown an execption and this testcase will fail');
});

recipes

watch mode - onchange

npx onchange -i -k '*.test.js' -- npx bft *.test.js

coverage - c8

npx c8 --all npx bft *.test.js

faq

  • Can I use the module without messing up with global?

  • Where are the setup and teardown functions?

  • "If bloat-free, then color-free please"

    • NO_COLOR=1 npx bft test.js is your friend.

author

balazs4 - https://twitter.com/balazs4

license

MIT

Keywords

FAQs

Package last updated on 17 May 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