0.1.21 • Published 2 years ago

estester v0.1.21

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Estester - A minimal test running library build on esbuild

This is no an assertion library just runs the tests.

Currently only Typescript support, will not run on javascript files

Install

npm install @modfy/estester

yarn install @modfy/estester

pnpm install @modfy/estester

Usage

  1. Create a __tests__ folder and add your test files inside them (only .ts)
  2. Inside a test file, let's say example.test.ts you can use our test runner
import { runTestGroup } from '@modfy/estester'

runTestGroup('Cutting media', {
  'Should cut with correct values': () => {
    // 
   },
  'Should not go beyond end and start': () => {
    throw new Error("Test")
  }
})

Note please use an assertion library like chai with this 3. Use estester from the cli, it will build and run your tests - You can use it in watch mode by adding --watch flag - You can inject files into it the test by using --inject