Skip to content

Commit

Permalink
Update testcafe, node version
Browse files Browse the repository at this point in the history
  • Loading branch information
jabrah committed Dec 12, 2023
1 parent 6ab6132 commit 5384b9e
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 239 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"test": "testcafe chrome tests/",
"test": "./runtest.sh",
"format:check": "prettier --check .",
"format:write": "prettier --write .",
"lint:check": "eslint .",
Expand All @@ -22,7 +22,7 @@
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"testcafe": "^2.4.0"
"testcafe": "3.3.0"
},
"husky": {
"hooks": {
Expand All @@ -36,6 +36,6 @@
]
},
"engines": {
"node": ">=14"
"node": ">=18"
}
}
7 changes: 7 additions & 0 deletions runtest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/sh

# Note: chromium flag "--auto-open-devtools-for-tabs" breaks Testcafe :(
testcafe \
'chrome --ignore-certificate-errors --allow-insecure-localhost' \
--hostname localhost \
tests/*.js
Loading

0 comments on commit 5384b9e

Please sign in to comment.