Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 4c03e0e

Browse files
committed
fix: create new test and fix dependencies
1 parent 294daf8 commit 4c03e0e

File tree

5 files changed

+32
-8
lines changed

5 files changed

+32
-8
lines changed

cypress.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"componentFolder": "packages",
33
"pluginsFile": "./plugins.js",
4-
"testFiles": "**/*.cy.test.ts"
4+
"testFiles": "**/*.cy.ts"
55
}

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
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>AUT Frame</title>
8+
</head>
9+
<body></body>
10+
</html>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"c-spinner": "yarn workspace @chakra-ui/c-spinner",
3636
"c-badge": "yarn workspace @chakra-ui/c-badge",
3737
"c-portal": "yarn workspace @chakra-ui/c-portal",
38-
"c-popper": "yarn workspace @chakra-ui/c-popper"
38+
"c-popper": "yarn workspace @chakra-ui/c-popper",
39+
"cy": "node ../../github/cypress/scripts/cypress.js open-ct"
3940
},
4041
"license": "MIT",
4142
"private": true,

packages/c-accordion/tests/c-accordion.cy.test.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { h } from 'vue'
2+
import { mount } from '@cypress/vue'
3+
import theme from '@chakra-ui/vue-theme'
4+
import { CButton } from '../src'
5+
6+
it('should render properly', () => {
7+
mount(CButton, {
8+
global: {
9+
provide: {
10+
$chakraTheme: theme,
11+
$chakraColorMode: 'light',
12+
$chakraIcons: {},
13+
},
14+
},
15+
slots: {
16+
default: 'Button',
17+
},
18+
})
19+
})

0 commit comments

Comments
 (0)