Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

This is an example of using Vitest for unit and automated testing

Getting Started

Install npm modules and then run the test suite

npm install
npm run test:run

Console output

~/src/helios-examples/vitest$ npm run test:run~/src/helios-examples/vitest$ npm run test:run

> vitest@1.0.0 test:run
> vitest run


 RUN  v0.30.1 /home/lawrence/src/helios-examples/vitest

 ✓ tests/mint-onchain-negative-2.test.js (1) 967ms
 ✓ tests/mint-onchain-positive.test.js (2) 1240ms
 ✓ tests/mint-onchain-negative-1.test.js (1) 952ms

 Test Files  3 passed (3)
      Tests  4 passed (4)
   Start at  18:49:55
   Duration  1.90s (transform 61ms, setup 0ms, collect 297ms, tests 3.16s, environment 1ms, prepare 439ms)