mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-22 02:20:37 +03:00
make adapt test-server-loader to work with playwright webkit
This commit is contained in:
@@ -5,6 +5,6 @@ module.exports = {
|
|||||||
process: (src, filePath) => {
|
process: (src, filePath) => {
|
||||||
const deploymentPath = path.relative(deploymentConfig.root, filePath);
|
const deploymentPath = path.relative(deploymentConfig.root, filePath);
|
||||||
const split = deploymentPath.split(path.sep);
|
const split = deploymentPath.split(path.sep);
|
||||||
return `module.exports = ${JSON.stringify(`http://localhost:${deploymentConfig.port}/${path.posix.join(...split)}`)}`;
|
return `module.exports = ${JSON.stringify(`http://127.0.0.1:${deploymentConfig.port}/${path.posix.join(...split)}`)}`;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const deploymentConfig = path.resolve(__dirname, './config/jest-browser.rollup.c
|
|||||||
const testServerPath = path.resolve(__dirname, './config/jest-test-server.js');
|
const testServerPath = path.resolve(__dirname, './config/jest-test-server.js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
browsers: ['chromium', 'firefox'],
|
browsers: ['chromium', 'firefox', 'webkit'],
|
||||||
collectCoverage: true,
|
collectCoverage: true,
|
||||||
launchType: 'LAUNCH',
|
launchType: 'LAUNCH',
|
||||||
launchOptions: {
|
launchOptions: {
|
||||||
|
|||||||
Reference in New Issue
Block a user