Skip to content

Commit 2610920

Browse files
committed
chore: apply oxfmt formatting
Fix `vp check` formatting failures from a13027f.
1 parent 91ba5cf commit 2610920

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

packages/cli/src/__tests__/define-config-mocker-rewrite.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import { defineConfig, rewriteVitePlusTestSpecifier } from '../define-config.ts'
66
const REWRITE_PLUGIN_NAME = 'vite-plus:vitest-specifier-rewrite';
77

88
function pluginName(p: unknown): string | undefined {
9-
if (p && typeof p === 'object' && 'name' in p && typeof (p as { name: unknown }).name === 'string') {
9+
if (
10+
p &&
11+
typeof p === 'object' &&
12+
'name' in p &&
13+
typeof (p as { name: unknown }).name === 'string'
14+
) {
1015
return (p as { name: string }).name;
1116
}
1217
return undefined;

packages/cli/src/define-config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ function vitePlusTestSpecifierRewritePlugin(): PluginOption {
111111
* The shapes overlap (both have an optional top-level `plugins` array), so a
112112
* shared helper keeps the wiring consistent.
113113
*/
114-
function injectPluginIntoInlineConfig<T extends { plugins?: UserConfig['plugins'] }>(
115-
config: T,
116-
): T {
114+
function injectPluginIntoInlineConfig<T extends { plugins?: UserConfig['plugins'] }>(config: T): T {
117115
return {
118116
...config,
119117
plugins: [vitePlusTestSpecifierRewritePlugin(), ...(config.plugins ?? [])],

0 commit comments

Comments
 (0)