(config, ...configs)
| 18 | const path = require('path'); |
| 19 | |
| 20 | const defineConfig = (config, ...configs) => { |
| 21 | return originalDefineConfig({ |
| 22 | ...config, |
| 23 | '@playwright/test': { |
| 24 | packageJSON: require.resolve('./package.json'), |
| 25 | }, |
| 26 | '@playwright/experimental-ct-core': { |
| 27 | registerSourceFile: path.join(__dirname, 'registerSource.mjs'), |
| 28 | frameworkPluginFactory: () => import('@vitejs/plugin-react').then(plugin => plugin.default()), |
| 29 | }, |
| 30 | }, ...configs); |
| 31 | }; |
| 32 | |
| 33 | module.exports = { test, expect, devices, defineConfig }; |