Skip to content

Commit ae3337c

Browse files
authored
Merge branch 'jess/reproduction-of-volar-issue' into main
2 parents 586269d + f55319f commit ae3337c

22 files changed

+1619
-110
lines changed

components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ declare module '@vue/runtime-core' {
1717
RouterView: typeof import('vue-router')['RouterView']
1818
TaskCard: typeof import('./src/components/TaskCard.vue')['default']
1919
TaskCreator: typeof import('./src/components/TaskCreator.vue')['default']
20+
TaskLabel: typeof import('./src/components/TaskLabel.vue')['default']
2021
TheAlerts: typeof import('./src/components/TheAlerts.vue')['default']
2122
TheDrawer: typeof import('./src/components/TheDrawer.vue')['default']
2223
TheNavbar: typeof import('./src/components/TheNavbar.vue')['default']

cypress.config.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
import { defineConfig } from 'cypress'
1+
import { defineConfig } from "cypress";
22

33
export default defineConfig({
44
e2e: {
5-
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
6-
baseUrl: 'http://localhost:4173'
7-
}
8-
})
5+
specPattern: "cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}",
6+
baseUrl: "http://localhost:4173",
7+
},
8+
9+
component: {
10+
devServer: {
11+
framework: "vue",
12+
bundler: "vite",
13+
},
14+
},
15+
});

cypress.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { mount } from "cypress/vue";
2+
3+
declare global {
4+
namespace Cypress {
5+
interface Chainable {
6+
mount: typeof mount;
7+
}
8+
}
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>Components App</title>
8+
</head>
9+
<body>
10+
<div data-cy-root></div>
11+
</body>
12+
</html>

cypress/support/component.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* eslint-disable @typescript-eslint/no-namespace */
2+
// ***********************************************************
3+
// This example support/component.ts is processed and
4+
// loaded automatically before your test files.
5+
//
6+
// This is a great place to put global configuration and
7+
// behavior that modifies Cypress.
8+
//
9+
// You can change the location of this file or turn off
10+
// automatically serving support files with the
11+
// 'supportFile' configuration option.
12+
//
13+
// You can read more here:
14+
// https://on.cypress.io/configuration
15+
// ***********************************************************
16+
17+
// Import commands.js using ES2015 syntax:
18+
19+
// Alternatively you can use CommonJS syntax:
20+
// require('./commands')
21+
22+
import "../../src/common";
23+
import { mount } from "cypress/vue";
24+
25+
Cypress.Commands.add("mount", mount);
26+
27+
// Example use:
28+
// cy.mount(MyComponent)

0 commit comments

Comments
 (0)