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

Commit f50efd2

Browse files
committed
Use ES6. Add react-e2e2 tests application
1 parent 4dd55b7 commit f50efd2

Some content is hidden

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

49 files changed

+16606
-33
lines changed

.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"@babel/env"
4+
]
5+
}

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"node": true
44
},
55
"parserOptions": {
6-
"ecmaVersion": "2018"
6+
"ecmaVersion": "2018",
7+
"sourceType": "module"
78
},
89
"plugins": ["prettier"],
910
"rules": {

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
# dependencies
77
/node_modules
8+
/test-e2e/react-app/node_modules
9+
/test-e2e/react-app/build
10+
/test-e2e/react-app/cypress/fixtures
11+
/test-e2e/react-app/cypress/screenshots
812

913
# tests
1014
/coverage

index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
const { setBaseUrl } = require("./src/config");
1+
import configuration from "./src/config";
2+
export * from "./src/providers";
23

3-
const main = {
4-
setBaseUrl
5-
};
6-
7-
module.exports = main;
4+
export const config = configuration;

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ module.exports = {
2727
// The glob patterns Jest uses to detect test files
2828
testMatch: ["**/test/**/?(*.)+(spec|test).js?(x)"],
2929

30+
transform: {
31+
".js$": "babel-jest"
32+
},
33+
3034
// The test environment that will be used for testing
3135
testEnvironment: "node"
3236
};

0 commit comments

Comments
 (0)