fix: at top of test-case file add import { describe, it, expect } from 'vitest'
see https://codingpr.com/test-your-vue-3-app-with-vitest-and-vue-test-utils/
error TS2339: Property does not exist on type
fix: in tsconfig.app.json modify the import-all
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
to "include": ["env.d.ts", "src/**/*.vue"],
and keep
"exclude": ["src/**/__tests__/*", "**/*.spec.ts"],
eslint Cannot find namespace 'NodeJS'.ts(2503)
fix:
in tsconfig.app.json
add to compilerOptions
the setting "types": ["node"]