@mariosant/t
A simple minimal test runner, that embraces a functional testing approach.
Last updated 2 years ago by mariosant .
ISC · Original npm · Tarball · package.json
$ cnpm install @mariosant/t 
SYNC missed versions from official npm registry.

t

npm version Build Status

A simple minimal test runner, that embraces a functional testing approach.

Installation

Install it to your project with:

$ npm i @mariosant/t

You can then execute it like:

$ npx t

Usage

t focuses on minimality. Tests are files that export a function. Here is a sample one

// let's call this file index.test.js
const {equal} = require('bring-your-assertion-library')
const someModule = require('./some-module')

module.exports = () => equal(someModule.color, 'red')

If you need async:

const {equal} = require('bring-your-assertion-library')
const someModule = require('./some-module')

module.exports = async () => {
	const color = await someModule.fetchAsyncColor()
	equal(color, 'red')
}

Current Tags

  • 0.0.5                                ...           latest (2 years ago)

4 Versions

  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (5)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |