Skip to content
/ demo Public

Example of using airtap to unit test JavaScript in browsers.

License

Notifications You must be signed in to change notification settings

airtap/demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

96ff40e · Mar 7, 2021

History

4 Commits
Mar 7, 2021
Sep 19, 2020
Sep 19, 2020
Sep 19, 2020
Sep 19, 2020
Mar 7, 2021
Sep 19, 2020

Repository files navigation

airtap-demo

Example of using airtap to unit test JavaScript in browsers.

Install

git clone git@github.com:airtap/demo.git && cd demo && npm i

Usage

To test the browsers listed in .airtap.yml:

npx airtap test.js

Test the default browser on your machine:

npx airtap --preset default test.js

Test with live reload (try modifying test.js):

npx airtap --live test.js

List available browsers:

npx airtap -la

Try adding more providers and browsers! Or selecting more specific browsers, for example firefox that supports headless mode:

browsers:
  - name: firefox
    supports:
      headless: true

License

MIT © 2020-present Airtap contributors

About

Example of using airtap to unit test JavaScript in browsers.

Topics

Resources

License

Stars

Watchers

Forks