Skip to main content
Version: 4.x

Getting Started


To install the stable version of Vest, run:

npm i vest

Writing your first suite

A Vest suite is very similar to a unit testing suite in Jest or Mocha, so the following might look familiar:

// suite.js
import { create, test, enforce } from 'vest';

const suite = create((data = {}) => {
test('username', 'Username is required', () => {

test('username', 'Username must be at least 3 characters long', () => {

export default suite;

Vest is a powerful framework, and it has quite a few features. In the following sections, you'll learn Vest's core concepts and how to make use of it.