estester
v0.1.21
Published
A minimal test running library build on esbuild
Downloads
2
Readme
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
- Create a
__tests__
folder and add your test files inside them (only.ts
) - 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