Skip to content

Conversation

@marcalexiei
Copy link

I noticed that the package was exporting few types as part of a "runtime" export:

test-utils/src/index.ts

Lines 13 to 28 in 94b2eee

export {
mount,
shallowMount,
renderToString,
enableAutoUnmount,
disableAutoUnmount,
RouterLinkStub,
VueWrapper,
DOMWrapper,
BaseWrapper,
config,
flushPromises,
MountingOptions,
Stubs,
createWrapperError
}

test-utils/src/index.ts

Lines 25 to 26 in 94b2eee

MountingOptions,
Stubs,


export interface MountingOptions<Props, Data = {}>

export type Stubs = Record<string, Stub> | Array<string>


This PR enables and fixes all the issues reported by consistent-type-imports typescript-eslint rule to ensure that import / export types are marked correctly.

I have also updated the eslint.config.mjs to use helpers from eslint/config instead of the deprecated tseslint.config.

@netlify
Copy link

netlify bot commented Nov 9, 2025

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit 8c820f1
🔍 Latest deploy log https://app.netlify.com/projects/vue-test-utils-docs/deploys/6910586d50d1220008fad5a7
😎 Deploy Preview https://deploy-preview-2734--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant