Skip to content

Commit 54c48e3

Browse files
committed
Run tests in a browser
1 parent 05c13ec commit 54c48e3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.airtap.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
providers:
2+
- airtap-playwright
3+
4+
browsers:
5+
- name: chromium
6+
supports:
7+
headless: true

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"benchmark": "cd benchmarks && npm install && npm run all",
8-
"test": "standard && tape test.js"
8+
"test": "standard && tape test.js",
9+
"test-in-browsers": "airtap test.js"
910
},
1011
"repository": {
1112
"type": "git",
@@ -25,6 +26,9 @@
2526
},
2627
"homepage": "https://github.com/fastify/secure-json-parse#readme",
2728
"devDependencies": {
29+
"airtap": "^4.0.1",
30+
"airtap-playwright": "^1.0.1",
31+
"playwright": "^1.7.1",
2832
"standard": "^16.0.0",
2933
"tape": "^5.1.1"
3034
}

0 commit comments

Comments
 (0)