From 9b77552a38f6952ec1e4116ead16d721f15c2932 Mon Sep 17 00:00:00 2001 From: sand4rt Date: Sat, 20 Jan 2024 17:04:38 +0100 Subject: [PATCH] feat: define config merging --- playwright-ct-web/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright-ct-web/index.js b/playwright-ct-web/index.js index 65e9726..32dedf8 100644 --- a/playwright-ct-web/index.js +++ b/playwright-ct-web/index.js @@ -23,6 +23,6 @@ function plugin() { return createPlugin(path.join(__dirname, 'registerSource.mjs')); }; -const defineConfig = config => originalDefineConfig({ ...config, _plugins: [plugin] }); +const defineConfig = (config, ...configs) => originalDefineConfig({ ...config, _plugins: [plugin] }, ...configs); module.exports = { test, expect, devices, defineConfig };