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