Vite
Install and configure Vite.
Create Project
First, create a new React project vite using the following command.
Tip
Currently only Vite’s React template is supported
npm create vite@latestAdd Canyon and Configuration
npm install babel-plugin-istanbul babel-plugin-canyon -DConfigure Babel Plugin
vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react({
babel:{
plugins:["istanbul","canyon"]
}
})],
})
That’s It
Continue to First Coverage Data - Verification.