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

Commit b05cde3

Browse files
committed
Merge branch 'develop' of github.com:chakra-ui/chakra-ui-vue-next into feat/modal
2 parents 24c0fbd + aff686d commit b05cde3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1343
-629
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ lerna-debug.log*
1616
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1717

1818
# Runtime data
19-
pids
19+
pids
2020
*.pid
2121
*.seed
2222
*.pid.lock

cypress.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"componentFolder": "packages/",
3+
"pluginsFile": "./tests/plugins.js",
4+
"testFiles": "**/*.cy.*",
5+
"supportFile": "./tests/support.tsx",
6+
"ignoreTestFiles": "**/*.snap",
7+
"video": false,
8+
"fixturesFolder": false,
9+
"reporter": "spec"
10+
}

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!--
2+
This file is required for Vite to run at the root of the project.
3+
It's very difficult to avoid this.
4+
One option is to move the playground/index.html up here instead.
5+
-->
6+
<!DOCTYPE html>
7+
<html lang="en">
8+
<head>
9+
<meta charset="utf-8" />
10+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
11+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
12+
<title>Cypress's Test Playground</title>
13+
</head>
14+
<body></body>
15+
</html>
16+

package.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"workspaces": [
99
"packages/*",
1010
"tooling/*",
11-
"website"
11+
"website",
12+
"tests"
1213
],
1314
"scripts": {
1415
"pkg": "manypkg run",
@@ -21,7 +22,11 @@
2122
"build": "lerna run build --no-private --stream",
2223
"dev": "NODE_ENV=development vite serve playground --config ./vite.config.ts --open",
2324
"playground:build": "yarn install && yarn build && yarn bootstrap && NODE_ENV=production vite build playground --config ./vite.config.ts",
24-
"test": "cross-env NODE_ENV=test jest --config jest.config.js",
25+
"cy:open": "cypress open-ct",
26+
"cy:run": "cypress run-ct --quiet",
27+
"test:component": "yarn cy:run",
28+
"test": "jest && yarn cy:run",
29+
"test:unit": "cross-env NODE_ENV=test jest --config jest.config.js",
2530
"lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix",
2631
"docs:dev:legacy": "vitepress dev docs",
2732
"docs:build:legacy": "vitepress build docs",
@@ -69,6 +74,7 @@
6974
"@vueuse/integrations": "^4.8.1",
7075
"@vueuse/motion": "^1.5.4",
7176
"aria-hidden": "^1.1.2",
77+
"@vueuse/core": "4.9.1",
7278
"axe-core": "^4.1.2",
7379
"babel-jest": "^26.6.3",
7480
"body-scroll-lock": "^3.1.5",
@@ -113,17 +119,22 @@
113119
"ts-jest": "^26.5.0",
114120
"ts-node": "^9.0.0",
115121
"typescript": "^4.1.3",
116-
"vite": "^2.2.3",
122+
"vite": "2.2.4",
117123
"vite-plugin-components": "^0.8.3",
118124
"vite-plugin-pages": "^0.9.2",
119125
"vitepress": "^0.12.0",
120-
"vue": ">=3.0.5",
126+
"vue": "^3.0.11",
121127
"vue-jest": "^5.0.0-alpha.7",
122128
"vue-prism-editor": "^2.0.0-alpha.2",
123129
"vue-router": "^4.0.6",
124130
"vue3-perfect-scrollbar": "^1.5.5"
125131
},
126132
"devDependencies": {
127-
"@babel/plugin-transform-runtime": "^7.13.15"
133+
"@babel/plugin-transform-runtime": "^7.13.15",
134+
"@cypress/snapshot": "^2.1.7",
135+
"@cypress/vite-dev-server": "^1.2.6",
136+
"@cypress/vue": "^3.0.1",
137+
"@vue/test-utils": "^2.0.0-rc.6",
138+
"cypress": "^7.2.0"
128139
}
129140
}

packages/c-accordion/tests/__snapshots__/c-accordion.test.ts.snap

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import CAccordion from '../src'
2+
import { h } from 'vue'
3+
4+
it('should render properly', () => {
5+
cy.mount(<CAccordion></CAccordion>)
6+
})

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

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/c-accordion/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "../../tsconfig.json",
33
"include": ["src"]
4-
}
4+
}

packages/c-alert/examples/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export * as BaseAlert from './base-alert.vue'
2+
export * as WithAccent from './with-accent.vue'
3+
export * as WithIcon from './with-icon.vue'
4+
export * as WithStatus from './with-status.vue'
5+
export * as WithTitle from './with-title.vue'

packages/c-alert/tests/__snapshots__/c-alert.test.ts.snap

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)