Skip to content

Commit

Permalink
Fix browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed Aug 8, 2023
1 parent a4f4995 commit 279100a
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
7 changes: 7 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires, import/no-extraneous-dependencies
const playwright = require("playwright");

process.env.FIREFOX_BIN = playwright.firefox.executablePath();
process.env.CHROME_BIN = playwright.chromium.executablePath();
process.env.WEBKIT_HEADLESS_BIN = playwright.webkit.executablePath();

module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
Expand Down
44 changes: 44 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"karma-mocha-reporter": "^2.2.5",
"karma-safari-launcher": "^1.0.0",
"mocha": "^10.2.0",
"playwright": "^1.36.2",
"typescript": "^5.1.6"
},
"dependencies": {
Expand Down

0 comments on commit 279100a

Please sign in to comment.