0.4.4 • Published 3 years ago

@test-runner/web v0.4.4

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

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\.

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago