npm.io
6.6.1 • Published 3 weeks ago

@form8ion/vitest

Licence
MIT
Version
6.6.1
Deps
7
Size
25 kB
Vulns
0
Weekly
0
Stars
1

vitest

test framework plugin for form8ion

Node CI Workflow Status Codecov SLSA Level 2

Table of Contents

Usage

MIT license npm Try @form8ion/vitest on RunKit node

Installation
$ npm install @form8ion/vitest --save-prod
Example
Import
import {dialects} from '@form8ion/javascript-core';
import {scaffold, test, lift} from '@form8ion/vitest';
Execute
(async () => {
  const projectRoot = process.cwd();

  await scaffold({projectRoot, dialect: dialects.ESM});

  if (await test({projectRoot})) {
    await lift({projectRoot});
  }
})();
API
scaffold

Scaffolder for configuring Vitest as the unit-test framework for the project

Takes a single options object as an argument, containing:

projectRoot string (required)

path to the root of the project

Contributing

PRs Welcome Commitizen friendly Conventional Commits semantic-release: angular Renovate

Dependencies
$ nvm install
$ npm install
Verification
$ npm test