跳到主要内容

Vue Component Testing

Installation

npm install cypress --save-dev

npx cypress open

The Cypress Launchpad will guide you through configuring your project.

Vue with Vite

import { defineConfig } from 'cypress'

export default defineConfig({
component: {
devServer: {
framework: 'vue',
bundler: 'vite',
},
},
})