Skip to content

Commit ca48a32

Browse files
committed
version 3.4.0 snapshot
1 parent 869b46a commit ca48a32

File tree

1,197 files changed

+32231
-1252
lines changed

Some content is hidden

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

1,197 files changed

+32231
-1252
lines changed

cypress/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,21 @@ pnpm build
3131
### Run Headed Component Tests with [Cypress Component Testing](https://on.cypress.io/component)
3232

3333
```sh
34-
pnpm test:unit # or `pnpm test:unit:ci` for headless testing
34+
pnpm test:unit:dev # or `pnpm test:unit` for headless testing
3535
```
3636

3737
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
3838

39+
```sh
40+
pnpm test:e2e:dev
41+
```
42+
43+
This runs the end-to-end tests against the Vite development server.
44+
It is much faster than the production build.
45+
46+
But it's still recommended to test the production build with `test:e2e` before deploying (e.g. in CI environments):
47+
3948
```sh
4049
pnpm build
41-
pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
50+
pnpm test:e2e
4251
```

cypress/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" href="/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Vite App</title>
88
</head>
99
<body>

cypress/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
"scripts": {
55
"dev": "vite",
66
"build": "vite build",
7-
"preview": "vite preview --port 4173",
8-
"test:e2e": "start-server-and-test preview http://localhost:4173/ 'cypress open --e2e'",
9-
"test:e2e:ci": "start-server-and-test preview http://localhost:4173/ 'cypress run --e2e'",
10-
"test:unit": "cypress open --component",
11-
"test:unit:ci": "cypress run --component --quiet --reporter spec"
7+
"preview": "vite preview",
8+
"test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'",
9+
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'",
10+
"test:unit": "cypress run --component",
11+
"test:unit:dev": "cypress open --component"
1212
},
1313
"dependencies": {
14-
"vue": "^3.2.38"
14+
"vue": "^3.2.41"
1515
},
1616
"devDependencies": {
17-
"@vitejs/plugin-vue": "^3.0.3",
18-
"cypress": "^10.7.0",
17+
"@vitejs/plugin-vue": "^3.1.2",
18+
"cypress": "^10.10.0",
1919
"start-server-and-test": "^1.14.0",
20-
"vite": "^3.0.9"
20+
"vite": "^3.1.8"
2121
}
2222
}

cypress/src/assets/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "./base.css";
1+
@import './base.css';
22

33
#app {
44
max-width: 1280px;

default/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" href="/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Vite App</title>
88
</head>
99
<body>

default/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"scripts": {
55
"dev": "vite",
66
"build": "vite build",
7-
"preview": "vite preview --port 4173"
7+
"preview": "vite preview"
88
},
99
"dependencies": {
10-
"vue": "^3.2.38"
10+
"vue": "^3.2.41"
1111
},
1212
"devDependencies": {
13-
"@vitejs/plugin-vue": "^3.0.3",
14-
"vite": "^3.0.9"
13+
"@vitejs/plugin-vue": "^3.1.2",
14+
"vite": "^3.1.8"
1515
}
1616
}

default/src/assets/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "./base.css";
1+
@import './base.css';
22

33
#app {
44
max-width: 1280px;

jsx-cypress/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,21 @@ pnpm build
3131
### Run Headed Component Tests with [Cypress Component Testing](https://on.cypress.io/component)
3232

3333
```sh
34-
pnpm test:unit # or `pnpm test:unit:ci` for headless testing
34+
pnpm test:unit:dev # or `pnpm test:unit` for headless testing
3535
```
3636

3737
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
3838

39+
```sh
40+
pnpm test:e2e:dev
41+
```
42+
43+
This runs the end-to-end tests against the Vite development server.
44+
It is much faster than the production build.
45+
46+
But it's still recommended to test the production build with `test:e2e` before deploying (e.g. in CI environments):
47+
3948
```sh
4049
pnpm build
41-
pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
50+
pnpm test:e2e
4251
```

jsx-cypress/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" href="/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Vite App</title>
88
</head>
99
<body>

jsx-cypress/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
"scripts": {
55
"dev": "vite",
66
"build": "vite build",
7-
"preview": "vite preview --port 4173",
8-
"test:e2e": "start-server-and-test preview http://localhost:4173/ 'cypress open --e2e'",
9-
"test:e2e:ci": "start-server-and-test preview http://localhost:4173/ 'cypress run --e2e'",
10-
"test:unit": "cypress open --component",
11-
"test:unit:ci": "cypress run --component --quiet --reporter spec"
7+
"preview": "vite preview",
8+
"test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'",
9+
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'",
10+
"test:unit": "cypress run --component",
11+
"test:unit:dev": "cypress open --component"
1212
},
1313
"dependencies": {
14-
"vue": "^3.2.38"
14+
"vue": "^3.2.41"
1515
},
1616
"devDependencies": {
17-
"@vitejs/plugin-vue": "^3.0.3",
17+
"@vitejs/plugin-vue": "^3.1.2",
1818
"@vitejs/plugin-vue-jsx": "^2.0.1",
19-
"cypress": "^10.7.0",
19+
"cypress": "^10.10.0",
2020
"start-server-and-test": "^1.14.0",
21-
"vite": "^3.0.9"
21+
"vite": "^3.1.8"
2222
}
2323
}

0 commit comments

Comments
 (0)