Nuxt Stack's Jest preset takes care of setting up Jest to work with Vue Single File Components and Nuxt's path aliases. It also lists @vue/test-utils as a dependency so you can import and assert Vue SFCs from the get go. Check out the source for Nuxt Stack's Jest preset here.

Run all related tests for a given globbing pattern. Useful when using lint-staged to only run tests related to the files being committed. Note that lint-staged will pass all the file paths to this command, so you can omit <pattern> in this case: