aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2023-01-23 23:49:44 +0100
committerGitHub <noreply@github.com>2023-01-23 23:49:44 +0100
commitb02a257f98688aa890e06a85672cd1a54c3ffa3a (patch)
tree0c5496cb1e61a964e35c73aa5696d0cc245e4f5f /package.json
parentce90a48450ba40586a6567235abb8fd2df84da97 (diff)
downloadjquery-b02a257f98688aa890e06a85672cd1a54c3ffa3a.tar.gz
jquery-b02a257f98688aa890e06a85672cd1a54c3ffa3a.zip
Build: Run GitHub Action browser tests on Playwright WebKit
So far, we've been running browser tests on GitHub Actions in Chrome and Firefox. Regular Safari is not available in GitHub Actions but Playwright WebKit comes close to a dev version of Safari. With this change, our GitHub CI & local test runs will invoke tests on all actively developed browser engines on all PRs. Also, our GitHub Actions browser tests are now running on Node.js 18. Detection of the Playwright WebKit browser in support unit tests is done by checking if the `test_browser` query parameter is set to `"Playwright"`; this is a `karma-webkit-launcher` feature. Detecting that browser via user agent as we normally do is hard as the UA on Linux is very similar to a real Safari one but it actually uses a newer version of the engine. In addition, we now allow to pass custom browsers when one needs it; e.g., to run the tests in all three engines on Linux/macOS, run: ``` grunt && BROWSERS=ChromeHeadless,FirefoxHeadless,WebkitHeadless grunt karma:main ``` Closes gh-5190
Diffstat (limited to 'package.json')
-rw-r--r--package.json5
1 files changed, 3 insertions, 2 deletions
diff --git a/package.json b/package.json
index 3fee5c5eb..3afa4e5f1 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,6 @@
"url": "https://github.com/jquery/jquery/issues"
},
"license": "MIT",
- "dependencies": {},
"devDependencies": {
"@babel/core": "7.10.5",
"@babel/plugin-transform-for-of": "7.10.4",
@@ -47,15 +46,17 @@
"gzip-js": "0.3.2",
"husky": "4.2.5",
"jsdom": "19.0.0",
- "karma": "^6.3.17",
+ "karma": "6.4.1",
"karma-browserstack-launcher": "1.6.0",
"karma-chrome-launcher": "3.1.1",
"karma-firefox-launcher": "2.1.2",
"karma-ie-launcher": "1.0.0",
"karma-jsdom-launcher": "12.0.0",
"karma-qunit": "4.1.2",
+ "karma-webkit-launcher": "2.1.0",
"load-grunt-tasks": "5.1.0",
"native-promise-only": "0.8.1",
+ "playwright-webkit": "1.29.2",
"promises-aplus-tests": "2.1.2",
"q": "1.5.1",
"qunit": "2.10.1",