Skip to content

Commit

Permalink
Add airtap for local browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Apr 9, 2021
1 parent 6756d89 commit 0971696
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .airtap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
providers:
- airtap-playwright

browsers:
- name: chromium
- name: firefox
- name: webkit
2 changes: 2 additions & 0 deletions errors.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const createError = require('errno').create
const LevelUPError = createError('LevelUPError')
const NotFoundError = createError('NotFoundError', LevelUPError)
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"main": "errors.js",
"scripts": {
"test": "standard && hallmark && nyc node test.js",
"test-browsers-local": "airtap --coverage test.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check . test.js",
Expand All @@ -15,6 +16,8 @@
"errno": "^1.0.0"
},
"devDependencies": {
"airtap": "^4.0.3",
"airtap-playwright": "^1.0.1",
"coveralls": "^3.0.2",
"dependency-check": "^3.3.0",
"hallmark": "^3.1.0",
Expand Down
4 changes: 3 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict'

const test = require('tape')
const errors = require('./')
const errors = require('.')

test('all errors are instances of LevelUPError', function (t) {
const LevelUPError = errors.LevelUPError
Expand Down

0 comments on commit 0971696

Please sign in to comment.