Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airtap/demo
Example of using airtap to unit test JavaScript in browsers.
https://github.com/airtap/demo
airtap browsers demo javascript nodejs
Last synced: about 21 hours ago
JSON representation
Example of using airtap to unit test JavaScript in browsers.
- Host: GitHub
- URL: https://github.com/airtap/demo
- Owner: airtap
- License: mit
- Created: 2020-09-19T08:25:35.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-07T13:10:29.000Z (over 3 years ago)
- Last Synced: 2024-05-13T16:24:03.175Z (6 months ago)
- Topics: airtap, browsers, demo, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# airtap-demo
**Example of using [`airtap`](https://github.com/airtap/airtap) to unit test JavaScript in browsers.**
## Install
```
git clone [email protected]:airtap/demo.git && cd demo && npm i
```## Usage
To test the browsers listed in [`.airtap.yml`](.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](https://github.com/airtap/airtap#available-providers)! Or selecting more specific browsers, for example firefox that supports headless mode:
```yaml
browsers:
- name: firefox
supports:
headless: true
```## License
[MIT](LICENSE) © 2020-present Airtap contributors