Skip to content
Snippets Groups Projects
Commit c6c5a168 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

tests: use playwright-core for fetching browsers

also add sourcemap support while at it
parent 823f7e80
No related branches found
No related tags found
No related merge requests found
module.exports = function (config) {
module.exports = async function (config) {
const {installBrowsersForNpmInstall, registry} = require('playwright-core/lib/utils/registry');
await installBrowsersForNpmInstall(['firefox', 'chromium']);
process.env.FIREFOX_BIN = registry.findExecutable('firefox').executablePath();
process.env.CHROME_BIN = registry.findExecutable('chromium').executablePath();
config.set({
basePath: 'dist',
frameworks: ['mocha'],
frameworks: ['mocha', 'source-map-support'],
client: {
mocha: {
ui: 'tdd',
timeout: 2000 * (process.env.CI === undefined ? 1 : 10),
},
},
files: [
......
......@@ -4046,6 +4046,13 @@ karma-mocha@^2.0.0, karma-mocha@^2.0.1:
dependencies:
minimist "^1.2.3"
karma-source-map-support@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz#58526ceccf7e8730e56effd97a4de8d712ac0d6b"
integrity sha512-RsBECncGO17KAoJCYXjv+ckIz+Ii9NCi+9enk+rq6XC81ezYkb4/RHE6CTXdA7IOJqoF3wcaLfVG0CPmE5ca6A==
dependencies:
source-map-support "^0.5.5"
karma@^6.0.0:
version "6.3.17"
resolved "https://registry.yarnpkg.com/karma/-/karma-6.3.17.tgz#5d963fb52463b73e1b5892ecb54c8f21bb04ba1d"
......@@ -5756,7 +5763,7 @@ source-map-resolve@^0.5.0:
source-map-url "^0.4.0"
urix "^0.1.0"
source-map-support@~0.5.20:
source-map-support@^0.5.5, source-map-support@~0.5.20:
version "0.5.21"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f"
integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment