Skip to content

This repo shows it's not possible to spy a function in a function in a component vue if these 2 functions have been declared in the vue file.

License

Notifications You must be signed in to change notification settings

mattaiod/VITEST-cant-spy-fn-in-fn-in-component

Repository files navigation

Install dependencies

  • pnpm install

Run tests

  • pnpm test

Why this repo

It shows how to provide a symbol to a vue component in a vitest test.

Issue on repo

vuejs/test-utils#1799

About

This repo shows it's not possible to spy a function in a function in a component vue if these 2 functions have been declared in the vue file.

Resources

License

Stars

Watchers

Forks