In my vue3 application, I am looking to create a straightforward test that verifies the presence of the updateRoute function with an async declaration in multiple components.
It's worth noting that due to the structure of my current project, isolating this function in a single file for reusability is not feasible.
For example:
const updateRoute = () => { doSomething() }
This should fail.
However, if it is written as:
const updateRoute = async () => { await doSomething() }
the test should succeed.
The specific testing library used (e.g. Jest) is flexible and can vary based on requirements.