@form8ion/vitest
v4.2.0
Published
test framework plugin for form8ion
Downloads
2,327
Readme
vitest
test framework plugin for form8ion
Table of Contents
Usage
Installation
$ npm install @form8ion/vitest --save-prod
Example
Import
import {dialects} from '@form8ion/javascript-core';
import {scaffold} from '@form8ion/vitest';
Execute
(async () => {
await scaffold({projectRoot: process.cwd(), dialect: dialects.ESM});
})();
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
Dependencies
$ nvm install
$ npm install
Verification
$ npm test