browser-ava

2.2.10 • Public • Published

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

browser-ava

Run ava tests in the browser

What it does

If your code does not depend on any node api (process, fs, ...) then this runner allows to run your ava test inside the browser.

Running your tests

browser-ava --webkit --chromium --firefox tests/*.mjs

Scrrenshot

limitations

  • only supports ESM

API

Table of Contents

testModules

Holds all tests

test

Collect all tests into testModules

Parameters

  • body
  • args ...any

pluralize

Pluralize subjects

Parameters

  • word string subject to be pluralized
  • number number if > 1 pluralize otherwize keep subject alone

Returns string pluralized subject if number > 1

Package Sidebar

Install

npm i browser-ava

Weekly Downloads

1,047

Version

2.2.10

License

BSD-2-Clause

Unpacked Size

127 kB

Total Files

13

Last publish

Collaborators

  • arlac77