testatron

2.1.0 • Public • Published

testatron

Dead simple unit testing.

Example use

(async () => {
  const lucy = require('Lucy');
  const testatron = require('testatron');
  const {
    keys
  } = lucy;
  console.log('Building Test Cases');
  await testatron({
    destination: `${__dirname}/tests`,
    filePath: './build/bundle.js',
    prefix: ` delete require.cache[require.resolve('Lucy')];
    const $ = lucy;
    const {
      ${keys(lucy).join(',')}
    } = $;`,
  });
  console.log('END');
})();

© copyright 2021 Universal Web, Inc

Dependencies (3)

Dev Dependencies (2)

Package Sidebar

Install

npm i testatron

Weekly Downloads

3

Version

2.1.0

License

ISC

Unpacked Size

16.7 kB

Total Files

10

Last publish

Collaborators

  • tomekmarchi