Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.

Commit c92a6a3

Browse files
committed
init
0 parents commit c92a6a3

File tree

21 files changed

+11276
-0
lines changed

21 files changed

+11276
-0
lines changed

.browserslistrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
> 1%
2+
last 2 versions

.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],
7+
parserOptions: {
8+
parser: "babel-eslint"
9+
},
10+
rules: {
11+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
12+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
13+
},
14+
overrides: [
15+
{
16+
files: [
17+
"**/__tests__/*.{j,t}s?(x)",
18+
"**/tests/unit/**/*.spec.{j,t}s?(x)"
19+
],
20+
env: {
21+
jest: true
22+
}
23+
}
24+
]
25+
};

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
/tests/e2e/videos/
6+
/tests/e2e/screenshots/
7+
8+
# local env files
9+
.env.local
10+
.env.*.local
11+
12+
# Log files
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
17+
# Editor directories and files
18+
.idea
19+
.vscode
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# e2e-testing-with-cypress
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn build
16+
```
17+
18+
### Run your unit tests
19+
```
20+
yarn test:unit
21+
```
22+
23+
### Run your end-to-end tests
24+
```
25+
yarn test:e2e
26+
```
27+
28+
### Lints and fixes files
29+
```
30+
yarn lint
31+
```
32+
33+
### Customize configuration
34+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@vue/cli-plugin-babel/preset"]
3+
};

cypress.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pluginsFile": "tests/e2e/plugins/index.js"
3+
}

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
preset: "@vue/cli-plugin-unit-jest"
3+
};

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "e2e-testing-with-cypress",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"test:unit": "vue-cli-service test:unit",
9+
"test:e2e": "vue-cli-service test:e2e",
10+
"lint": "vue-cli-service lint"
11+
},
12+
"dependencies": {
13+
"core-js": "^3.6.4",
14+
"vue": "^2.6.11"
15+
},
16+
"devDependencies": {
17+
"@vue/cli-plugin-babel": "~4.2.0",
18+
"@vue/cli-plugin-e2e-cypress": "~4.2.0",
19+
"@vue/cli-plugin-eslint": "~4.2.0",
20+
"@vue/cli-plugin-unit-jest": "~4.2.0",
21+
"@vue/cli-service": "~4.2.0",
22+
"@vue/eslint-config-prettier": "^6.0.0",
23+
"@vue/test-utils": "1.0.0-beta.31",
24+
"babel-eslint": "^10.0.3",
25+
"eslint": "^6.7.2",
26+
"eslint-plugin-prettier": "^3.1.1",
27+
"eslint-plugin-vue": "^6.1.2",
28+
"node-sass": "^4.12.0",
29+
"prettier": "^1.19.1",
30+
"sass-loader": "^8.0.2",
31+
"vue-template-compiler": "^2.6.11"
32+
}
33+
}

public/favicon.ico

4.19 KB
Binary file not shown.

public/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title><%= htmlWebpackPlugin.options.title %></title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13+
</noscript>
14+
<div id="app"></div>
15+
<!-- built files will be auto injected -->
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)