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

limitations
- only supports ESM
API
Table of Contents
- pluralize
- utf8EncodingOptions
- importsConditionOrder
- exportsConditionOrder
- resolveExports
- resolveImport
pluralize
Pluralize subjects
Parameters
Returns string pluralized subject if number > 1
utf8EncodingOptions
Type: BufferEncoding
importsConditionOrder
Order in which imports are searched
exportsConditionOrder
Order in which exports are searched
resolveExports
Find module inside a package.
Parameters
partsArray[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)pkgObject decoded package.json content
Returns (string | undefined) module file name relative to package
resolveImport
Maps import url from node to browser view.