Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"jsdom": "27.2.0",
"jsdom-global": "3.0.2",
"lint-staged": "16.2.7",
"prettier": "3.6.2",
"prettier": "3.7.4",
"reflect-metadata": "0.2.2",
"rollup": "4.53.3",
"tslib": "2.8.1",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/baseWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ import { stringifyNode } from './utils/stringifyNode'
import type { HTMLBeautifyOptions } from 'js-beautify'
import beautify from 'js-beautify'

export default abstract class BaseWrapper<ElementType extends Node>
implements WrapperLike
{
export default abstract class BaseWrapper<
ElementType extends Node
> implements WrapperLike {
protected readonly wrapperElement: VueNode<ElementType>
protected abstract getRootNodes(): VueNode[]

Expand Down
12 changes: 8 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ interface BaseMountingOptions<Props, Data = {}> {
/**
* Mounting options for `mount` and `shallowMount`
*/
export interface MountingOptions<Props, Data = {}>
extends BaseMountingOptions<Props, Data> {
export interface MountingOptions<Props, Data = {}> extends BaseMountingOptions<
Props,
Data
> {
/**
* Specify where to mount the component.
* Can be a valid CSS selector, or an Element connected to the document.
Expand All @@ -99,8 +101,10 @@ export interface MountingOptions<Props, Data = {}>
/**
* Mounting options for `renderToString`
*/
export interface RenderMountingOptions<Props, Data = {}>
extends BaseMountingOptions<Props, Data> {
export interface RenderMountingOptions<
Props,
Data = {}
> extends BaseMountingOptions<Props, Data> {
/**
* Attach to is not available in SSR mode
*/
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function isComponent(
): component is ConcreteComponent {
return Boolean(
component &&
(typeof component === 'object' || typeof component === 'function')
(typeof component === 'object' || typeof component === 'function')
)
}

Expand Down
6 changes: 3 additions & 3 deletions src/utils/vueCompatSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export function unwrapLegacyVueExtendComponent<T>(
export function isLegacyFunctionalComponent(component: unknown): boolean {
return Boolean(
component &&
typeof component === 'object' &&
hasOwnProperty(component, 'functional') &&
component.functional
typeof component === 'object' &&
hasOwnProperty(component, 'functional') &&
component.functional
)
}