UNPKG

@ehmicky/dev-tasks

Version:

Automated development tasks for my own projects

22 lines (9 loc) 438 B
import{exec}from"gulp-execa"; export const unit=()=>exec("ava"); unit.description="Run unit tests"; export const unitWatch=()=>exec("ava -w",{stdin:"inherit"}); unitWatch.description="Run unit tests (watch mode)"; const c8Command= "c8 --reporter=lcov --reporter=text --reporter=html --reporter=json"; export const unitCoverage=()=>exec(`${c8Command} ava`); unitCoverage.description="Run unit tests and compute test coverage";