Skip to content

Commit

Permalink
Use karma-safarinative-launcher instead of karma-safari-launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Jul 15, 2021
1 parent a81df98 commit 501f130
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
7 changes: 7 additions & 0 deletions karma.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ module.exports = (config: Config) => {
if (IEindex !== -1) {
availableBrowsers.splice(IEindex);
}

// Rename Safari to use SafariNative karma launcher
const SafariIndex = availableBrowsers.indexOf('Safari');
if (SafariIndex !== -1) {
availableBrowsers[SafariIndex] = 'SafariNative';
}

return availableBrowsers;
},
// we can not enable headless mode since firefox does not support
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"karma-detect-browsers": "^2.3.3",
"karma-firefox-launcher": "^2.1.1",
"karma-mocha": "^2.0.1",
"karma-safari-launcher": "^1.0.0",
"karma-safarinative-launcher": "^1.1.0",
"karma-webpack": "https://github.com/ryanclark/karma-webpack/archive/ef7edb6b6756fb563871eaff88ca876892694896.tar.gz",
"markdown-it": "^12.1.0",
"mocha": "^9.0.0",
Expand Down

0 comments on commit 501f130

Please sign in to comment.