mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: vite all frameworks (#13780)
This commit is contained in:
parent
f989e86538
commit
2bc36794d1
@ -1,6 +1,5 @@
|
|||||||
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
||||||
import vite from '@playwright/experimental-ct-vue/vitePlugin';
|
import viteCT from '@playwright/experimental-ct-vue/vitePlugin';
|
||||||
import vue from '@vitejs/plugin-vue';
|
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -12,7 +11,7 @@ const config: PlaywrightTestConfig = {
|
|||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
vite({ config: { plugins: [ vue() ] }}),
|
viteCT()
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
|
794
package-lock.json
generated
794
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,7 @@
|
|||||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { devices } from '@playwright/test';
|
import { devices } from '@playwright/test';
|
||||||
import vite from '@playwright/experimental-ct-react/vitePlugin';
|
import viteCT from '@playwright/experimental-ct-react/vitePlugin';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -29,7 +29,7 @@ const config: PlaywrightTestConfig = {
|
|||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
vite({ port: 3101 })
|
viteCT({ port: 3101 })
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
"./test": "./test.js",
|
"./test": "./test.js",
|
||||||
"./vitePlugin": "./vitePlugin.js"
|
"./vitePlugin": "./vitePlugin.js"
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@vitejs/plugin-react": "^1.0.7",
|
||||||
|
"vite": "^2.9.5"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "1.22.0-next"
|
"@playwright/test": "1.22.0-next"
|
||||||
}
|
}
|
||||||
|
@ -17,5 +17,8 @@
|
|||||||
const { createPlugin } = require('@playwright/test/lib/plugins/vitePlugin');
|
const { createPlugin } = require('@playwright/test/lib/plugins/vitePlugin');
|
||||||
|
|
||||||
module.exports = (options = {}) => {
|
module.exports = (options = {}) => {
|
||||||
return createPlugin('@playwright/experimental-ct-react/register', options);
|
return createPlugin(
|
||||||
|
'@playwright/experimental-ct-react/register',
|
||||||
|
() => require('@vitejs/plugin-react')(),
|
||||||
|
options);
|
||||||
};
|
};
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
"./test": "./test.js",
|
"./test": "./test.js",
|
||||||
"./vitePlugin": "./vitePlugin.js"
|
"./vitePlugin": "./vitePlugin.js"
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.30",
|
||||||
|
"vite": "^2.9.5"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "1.22.0-next"
|
"@playwright/test": "1.22.0-next"
|
||||||
}
|
}
|
||||||
|
@ -17,5 +17,8 @@
|
|||||||
const { createPlugin } = require('@playwright/test/lib/plugins/vitePlugin');
|
const { createPlugin } = require('@playwright/test/lib/plugins/vitePlugin');
|
||||||
|
|
||||||
module.exports = (options = {}) => {
|
module.exports = (options = {}) => {
|
||||||
return createPlugin('@playwright/experimental-ct-svelte/register', options);
|
return createPlugin(
|
||||||
|
'@playwright/experimental-ct-svelte/register',
|
||||||
|
() => require('@sveltejs/vite-plugin-svelte').svelte(),
|
||||||
|
options);
|
||||||
};
|
};
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
"./test": "./test.js",
|
"./test": "./test.js",
|
||||||
"./vitePlugin": "./vitePlugin.js"
|
"./vitePlugin": "./vitePlugin.js"
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@vitejs/plugin-vue": "^2.3.1",
|
||||||
|
"vite": "^2.9.5"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "1.22.0-next"
|
"@playwright/test": "1.22.0-next"
|
||||||
}
|
}
|
||||||
|
@ -17,5 +17,8 @@
|
|||||||
const { createPlugin } = require('@playwright/test/lib/plugins/vitePlugin');
|
const { createPlugin } = require('@playwright/test/lib/plugins/vitePlugin');
|
||||||
|
|
||||||
module.exports = (options = {}) => {
|
module.exports = (options = {}) => {
|
||||||
return createPlugin('@playwright/experimental-ct-vue/register', options);
|
return createPlugin(
|
||||||
|
'@playwright/experimental-ct-vue/register',
|
||||||
|
() => require('@vitejs/plugin-vue')(),
|
||||||
|
options);
|
||||||
};
|
};
|
||||||
|
@ -27,6 +27,7 @@ let viteDevServer: ViteDevServer;
|
|||||||
|
|
||||||
export function createPlugin(
|
export function createPlugin(
|
||||||
registerFunction: string,
|
registerFunction: string,
|
||||||
|
frameworkPluginFactory: () => Plugin,
|
||||||
options: {
|
options: {
|
||||||
include?: string,
|
include?: string,
|
||||||
port?: number,
|
port?: number,
|
||||||
@ -46,7 +47,9 @@ export function createPlugin(
|
|||||||
|
|
||||||
setup: async () => {
|
setup: async () => {
|
||||||
viteConfig.root = viteConfig.root || configDir;
|
viteConfig.root = viteConfig.root || configDir;
|
||||||
viteConfig.plugins = viteConfig.plugins || [];
|
viteConfig.plugins = viteConfig.plugins || [
|
||||||
|
frameworkPluginFactory()
|
||||||
|
];
|
||||||
viteConfig.plugins.push(vitePlugin(registerFunction, options.include));
|
viteConfig.plugins.push(vitePlugin(registerFunction, options.include));
|
||||||
viteConfig.configFile = viteConfig.configFile || false;
|
viteConfig.configFile = viteConfig.configFile || false;
|
||||||
viteConfig.server = viteConfig.server || {};
|
viteConfig.server = viteConfig.server || {};
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||||
import { devices } from '@playwright/test';
|
import { devices } from '@playwright/test';
|
||||||
import vite from '@playwright/experimental-ct-react/vitePlugin';
|
import viteCT from '@playwright/experimental-ct-react/vitePlugin';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -28,7 +28,7 @@ const config: PlaywrightTestConfig = {
|
|||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
vite({ port: 3101 })
|
viteCT({ port: 3101 })
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
||||||
import vite from '@playwright/experimental-ct-react/vitePlugin';
|
import viteCT from '@playwright/experimental-ct-react/vitePlugin';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -27,7 +27,7 @@ const config: PlaywrightTestConfig = {
|
|||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
vite(),
|
viteCT(),
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
||||||
|
import viteCT from '@playwright/experimental-ct-react/vitePlugin';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -25,18 +26,10 @@ const config: PlaywrightTestConfig = {
|
|||||||
] : [
|
] : [
|
||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
webServer: {
|
plugins: [
|
||||||
url: 'http://localhost:3001/',
|
viteCT(),
|
||||||
command: 'npm run start',
|
],
|
||||||
reuseExistingServer: !process.env.CI,
|
|
||||||
env: {
|
|
||||||
BROWSER: 'none',
|
|
||||||
PORT: '3001',
|
|
||||||
REACT_APP_TESTING: '1',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
use: {
|
use: {
|
||||||
baseURL: 'http://localhost:3001/',
|
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
},
|
},
|
||||||
projects: [
|
projects: [
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<!-- built files will be auto injected -->
|
<script type="module" src="/playwright/index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
0
tests/components/ct-react/playwright/index.js
Normal file
0
tests/components/ct-react/playwright/index.js
Normal file
@ -1,11 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import ReactDOM from 'react-dom';
|
|
||||||
import './index.css';
|
|
||||||
import App from './App';
|
|
||||||
|
|
||||||
ReactDOM.render(
|
|
||||||
<React.StrictMode>
|
|
||||||
<App />
|
|
||||||
</React.StrictMode>,
|
|
||||||
document.getElementById('root')
|
|
||||||
);
|
|
@ -1,4 +0,0 @@
|
|||||||
import register from '@playwright/experimental-ct-react/register';
|
|
||||||
import App from './App';
|
|
||||||
|
|
||||||
register({ App });
|
|
@ -1,6 +1,11 @@
|
|||||||
if (process.env.REACT_APP_TESTING)
|
import React from 'react';
|
||||||
import('./index-tests');
|
import ReactDOM from 'react-dom';
|
||||||
else
|
import './index.css';
|
||||||
import('./index-app');
|
import App from './App';
|
||||||
|
|
||||||
export {};
|
ReactDOM.render(
|
||||||
|
<React.StrictMode>
|
||||||
|
<App />
|
||||||
|
</React.StrictMode>,
|
||||||
|
document.getElementById('root')
|
||||||
|
);
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||||
import { devices } from '@playwright/test';
|
import { devices } from '@playwright/test';
|
||||||
|
import viteCT from '@playwright/experimental-ct-svelte/vitePlugin';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -26,13 +27,10 @@ const config: PlaywrightTestConfig = {
|
|||||||
] : [
|
] : [
|
||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
webServer: {
|
plugins: [
|
||||||
url: 'http://localhost:3000/tests',
|
viteCT(),
|
||||||
command: 'npm run dev',
|
],
|
||||||
reuseExistingServer: !process.env.CI,
|
|
||||||
},
|
|
||||||
use: {
|
use: {
|
||||||
baseURL: 'http://localhost:3000/tests',
|
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
},
|
},
|
||||||
projects: [
|
projects: [
|
||||||
|
13
tests/components/ct-svelte-kit/playwright/index.html
Normal file
13
tests/components/ct-svelte-kit/playwright/index.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Svelte Test</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/playwright/index.ts"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
0
tests/components/ct-svelte-kit/playwright/index.ts
Normal file
0
tests/components/ct-svelte-kit/playwright/index.ts
Normal file
@ -1,15 +0,0 @@
|
|||||||
<script>
|
|
||||||
import { onMount } from 'svelte';
|
|
||||||
import Counter from '../../lib/Counter.svelte';
|
|
||||||
import register from '@playwright/experimental-ct-svelte/register';
|
|
||||||
|
|
||||||
onMount(async () => {
|
|
||||||
register({
|
|
||||||
Counter
|
|
||||||
}, {
|
|
||||||
window
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div id="root"></div>
|
|
@ -16,8 +16,7 @@
|
|||||||
|
|
||||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||||
import { devices } from '@playwright/test';
|
import { devices } from '@playwright/test';
|
||||||
import vite from '@playwright/experimental-ct-svelte/vitePlugin';
|
import viteCT from '@playwright/experimental-ct-svelte/vitePlugin';
|
||||||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -29,9 +28,7 @@ const config: PlaywrightTestConfig = {
|
|||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
vite({
|
viteCT(),
|
||||||
config: { plugins: [ svelte() ] }
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||||
import { devices } from '@playwright/test';
|
import { devices } from '@playwright/test';
|
||||||
|
import viteCT from '@playwright/experimental-ct-svelte/vitePlugin';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -26,13 +27,10 @@ const config: PlaywrightTestConfig = {
|
|||||||
] : [
|
] : [
|
||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
webServer: {
|
plugins: [
|
||||||
url: 'http://localhost:8080/tests.html',
|
viteCT(),
|
||||||
command: 'npm run dev',
|
],
|
||||||
reuseExistingServer: !process.env.CI,
|
|
||||||
},
|
|
||||||
use: {
|
use: {
|
||||||
baseURL: 'http://localhost:8080/tests.html',
|
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
},
|
},
|
||||||
projects: [
|
projects: [
|
||||||
|
13
tests/components/ct-svelte/playwright/index.html
Normal file
13
tests/components/ct-svelte/playwright/index.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Svelte Test</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/playwright/index.ts"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
0
tests/components/ct-svelte/playwright/index.ts
Normal file
0
tests/components/ct-svelte/playwright/index.ts
Normal file
@ -1,19 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset='utf-8'>
|
|
||||||
<meta name='viewport' content='width=device-width,initial-scale=1'>
|
|
||||||
|
|
||||||
<title>Svelte app</title>
|
|
||||||
|
|
||||||
<link rel='icon' type='image/png' href='/favicon.png'>
|
|
||||||
<link rel='stylesheet' href='/global.css'>
|
|
||||||
<link rel='stylesheet' href='/tests/bundle.css'>
|
|
||||||
|
|
||||||
<script defer src='/tests/bundle.js'></script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="root"></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,4 +0,0 @@
|
|||||||
import register from '@playwright/experimental-ct-svelte/register';
|
|
||||||
import App from './App.svelte';
|
|
||||||
|
|
||||||
register({ App });
|
|
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
||||||
|
import viteCT from '@playwright/experimental-ct-vue/vitePlugin';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -25,13 +26,10 @@ const config: PlaywrightTestConfig = {
|
|||||||
] : [
|
] : [
|
||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
webServer: {
|
plugins: [
|
||||||
url: 'http://localhost:8080/tests.html',
|
viteCT(),
|
||||||
command: 'npm run serve',
|
],
|
||||||
reuseExistingServer: !process.env.CI,
|
|
||||||
},
|
|
||||||
use: {
|
use: {
|
||||||
baseURL: 'http://localhost:8080/tests.html',
|
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
},
|
},
|
||||||
projects: [
|
projects: [
|
||||||
|
12
tests/components/ct-vue-cli/playwright/index.html
Normal file
12
tests/components/ct-vue-cli/playwright/index.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/playwright/index.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
0
tests/components/ct-vue-cli/playwright/index.js
Normal file
0
tests/components/ct-vue-cli/playwright/index.js
Normal file
@ -1,18 +0,0 @@
|
|||||||
import { createApp, setDevtoolsHook, h } from 'vue'
|
|
||||||
import register from '@playwright/experimental-ct-vue/register'
|
|
||||||
|
|
||||||
import Button from './components/Button.vue'
|
|
||||||
import DefaultSlot from './components/DefaultSlot.vue'
|
|
||||||
import NamedSlots from './components/NamedSlots.vue'
|
|
||||||
|
|
||||||
register({
|
|
||||||
Button,
|
|
||||||
DefaultSlot,
|
|
||||||
NamedSlots
|
|
||||||
}, {
|
|
||||||
// This is only needed if you are using Vue CLI (webpack).
|
|
||||||
// Vite does not need this line.
|
|
||||||
createApp,
|
|
||||||
setDevtoolsHook,
|
|
||||||
h
|
|
||||||
})
|
|
@ -15,8 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
||||||
import vite from '@playwright/experimental-ct-vue/vitePlugin';
|
import viteCT from '@playwright/experimental-ct-vue/vitePlugin';
|
||||||
import vue from '@vitejs/plugin-vue'
|
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testDir: 'src',
|
testDir: 'src',
|
||||||
@ -28,11 +27,7 @@ const config: PlaywrightTestConfig = {
|
|||||||
['html', { open: 'on-failure' }]
|
['html', { open: 'on-failure' }]
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
vite({
|
viteCT(),
|
||||||
config: {
|
|
||||||
plugins: [ vue() ]
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
"exclude": [
|
"exclude": [
|
||||||
"packages/*/lib",
|
"packages/*/lib",
|
||||||
"packages/html-reporter",
|
"packages/html-reporter",
|
||||||
|
"packages/playwright-ct-react",
|
||||||
|
"packages/playwright-ct-svelte",
|
||||||
|
"packages/playwright-ct-vue",
|
||||||
"packages/recorder",
|
"packages/recorder",
|
||||||
"packages/trace-viewer",
|
"packages/trace-viewer",
|
||||||
"packages/web",
|
"packages/web",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user