Skip to content

Commit cb45480

Browse files
committed
use playright
1 parent 664f925 commit cb45480

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

vitest.config.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
import Vue from '@vitejs/plugin-vue';
2-
import path from 'path'
3-
import {defineConfig} from "vite";
4-
1+
import Vue from "@vitejs/plugin-vue";
2+
import path from "path";
3+
import { defineConfig } from "vite";
54

65
export default defineConfig({
7-
resolve: {
8-
alias: {
9-
'@': path.resolve(__dirname, './src')
10-
},
6+
resolve: {
7+
alias: {
8+
"@": path.resolve(__dirname, "./src"),
9+
},
10+
},
11+
plugins: [Vue()],
12+
// @ts-ignore
13+
test: {
14+
browser: {
15+
provider: "playwright", // or 'webdriverio'
16+
enabled: true,
17+
// at least one instance is required
18+
instances: [{ browser: "chromium" }],
1119
},
12-
plugins: [Vue()],
13-
// @ts-ignore
14-
test: {
15-
browser: {
16-
enabled: true,
17-
name: 'chrome', // browser name is required
18-
},
19-
}
20-
})
20+
},
21+
});

0 commit comments

Comments
 (0)