Skip to content

form8ion/vitest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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} 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

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

Dependencies

$ nvm install
$ npm install

Verification

$ npm test