From 7ad0672fe3078f01af968d0b70375fabb000a796 Mon Sep 17 00:00:00 2001 From: Sander Date: Sat, 20 Jan 2024 22:31:43 +0100 Subject: [PATCH] feat: define config merging (#37) --- 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 };