Last 12 weeks · 42 commits
2 of 6 standards met
Summary now returns / bindings on for bundled-style components (setup that returns a render function). Vue only creates lazily (template ref or directive), so a child can have an exposed API while is still . Also wrap those instances in the vm proxy when is missing, which is the typical bundled `exposeProxy === nullpnpm testfindComponentexposeProxypnpm run lintformat-checktest:buildtsdvue-tsctsc:docs` Made with Cursor
Description Fixes #2545. and now synthesize the browser-style click activation for enabled `.preventcorepack pnpm vitest run tests/trigger.spec.tscorepack pnpm exec oxfmt --check src/baseWrapper.ts tests/trigger.spec.tscorepack pnpm exec oxlint src/baseWrapper.ts tests/trigger.spec.tscorepack pnpm run buildgit diff --check`
After investigating the issue down to it appears that is only set in a script-setup component if it uses at least one directive: https://github.com/vuejs/core/blob/main/packages/runtime-core/src/component.ts#L1187 https://github.com/vuejs/core/blob/main/packages/runtime-core/src/directives.ts#L143 Meaning a component can have an exposed API while is . In this case we can create manually from which essentially has the same effect, because the one created by runtime-core is only different by also proxying which aren't available anyway.
Repository: vuejs/test-utils. Description: Vue Test Utils for Vue 3 Stars: 1156, Forks: 290. Primary language: TypeScript. Languages: TypeScript (95.3%), Vue (4.6%), JavaScript (0.1%). License: MIT. Homepage: https://test-utils.vuejs.org Latest release: v2.4.11 (2mo ago). Open PRs: 9, open issues: 27. Last activity: 6h ago. Community health: 37%. Top contributors: renovate[bot], dependabot[bot], lmiller1990, cexbrayat, dependabot-preview[bot], xanf, dobromir-hristov, afontcu, freakzlike, pikax and others.