This is the basic example to create a vue/vite project and integrate vitest
npm create vite@latest ITB-2023 -- --template vue
npm install -D vitest
export default defineConfig({
plugins: [vue()],
test : {
globals : true,
environment : "jsdom"
}
});
npm install -D jsdom
npm i -D @vitest/ui
"tests" : "vitest --ui --api 9527"
import { describe, it } from "vitest";
describe( "My example", () => {
it.todo( "is my example", () => {
//
} );
} );