I want to write a simple test for my vue3 app, test should assert that specific function (updateRoute in this case) is declared with async in different components
Note: according to my current project I can't isolate this function in a single file to make it reusable
example:
const updateRoute = () => { doSomethig() }
should fail
while
const updateRoute = async () => { await doSomethig() }
should pass
the testing library doesn't matter, it can be Jest or anything else