This package has been deprecated

Author message:

Project renamed to web-runner

@test-runner/web

0.4.4 • Public • Published

view on npm npm module downloads Gihub repo dependents Gihub package dependents Node.js CI js-standard-style

This project and documentation are a work in progress.

@test-runner/web

Runs the supplied test suite in a headless browser (Chromium).

$ web-runner [<options>] file ...

Synopsis

Example of an isomorphic test model. This file will run natively without transpilation in both Nodejs and the browser.

import Tom from '@test-runner/tom'
import arrayify from './index.mjs'
import getAssert from 'isomorphic-assert'

const a = await getAssert()
const tom = new Tom('array-back')

tom.test('arrayify()', function () {
  a.deepEqual(arrayify(undefined), [])
  a.deepEqual(arrayify(null), [null])
  a.deepEqual(arrayify(0), [0])
  a.deepEqual(arrayify([1, 2]), [1, 2])
  a.deepEqual(arrayify(new Set([1, 2])), [1, 2])
})

export default tom

Example output.

$ web-runner test.mjs


Start: 2 tests loaded

 ✓ array-back if already array, do nothing
 ✓ array-back arrayify()

Completed in 16ms. Pass: 2, fail: 0, skip: 0.

Install

$ npm install --save-dev @test-runner/web

© 2019-21 Lloyd Brookes <75pound@gmail.com>.

Readme

Keywords

none

Package Sidebar

Install

npm i @test-runner/web

Weekly Downloads

10

Version

0.4.4

License

MIT

Unpacked Size

373 kB

Total Files

91

Last publish

Collaborators

  • 75lb