Skip to content

Commit 8e4a7ee

Browse files
committed
style: fmt
1 parent 899f884 commit 8e4a7ee

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

vitest.config.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { defineConfig } from "vitest/config";
22

33
const isBrowser = process.env.IS_BROWSER;
4-
const exclude = ['**\/node_modules/**', '**\/dist/**', '**\/cypress/**', '**\/.{idea,git,cache,output,temp}/**', '**\/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*']
4+
const exclude = [
5+
"**\/node_modules/**",
6+
"**\/dist/**",
7+
"**\/cypress/**",
8+
"**\/.{idea,git,cache,output,temp}/**",
9+
"**\/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*",
10+
];
511

612
export default defineConfig({
713
test: {
@@ -13,8 +19,10 @@ export default defineConfig({
1319
ignoreSourceErrors: true,
1420
tsconfig: "./tests/tsconfig.json",
1521
},
16-
include: ['**\/*.{test,spec}.?(c|m)[jt]s?(x)'],
17-
exclude: !isBrowser ? [...exclude, '**\/*.browser.{test,spec}.?(c|m)[jt]s?(x)'] : exclude,
22+
include: ["**\/*.{test,spec}.?(c|m)[jt]s?(x)"],
23+
exclude: !isBrowser
24+
? [...exclude, "**\/*.browser.{test,spec}.?(c|m)[jt]s?(x)"]
25+
: exclude,
1826
},
1927
server: {
2028
hmr: false,

0 commit comments

Comments
 (0)