[CHORES] add getToken function in authSlice.js
cypress.json
0 → 100644
cypress/plugins/index.js
0 → 100644
This diff is collapsed.
... | ... | @@ -7,7 +7,6 @@ |
"@reduxjs/toolkit": "^1.5.1", | ||
"@testing-library/jest-dom": "^5.11.9", | ||
"@testing-library/react": "^11.2.5", | ||
"@testing-library/user-event": "^12.8.1", | ||
"autoprefixer": "^10.2.5", | ||
"axios": "^0.21.1", | ||
"msw": "^0.28.0", | ||
... | ... | @@ -18,10 +17,13 @@ |
"react-hot-toast": "^1.0.2", | ||
"react-redux": "^7.2.3", | ||
"react-scripts": "4.0.3", | ||
"react-toast": "^1.0.1", | ||
"redux": "^4.0.5", | ||
"redux-persist": "^6.0.0", | ||
"redux-thunk": "^2.3.0", | ||
"router": "^1.3.5", | ||
"tailwindcss": "^2.0.3", | ||
"wait-on": "^5.3.0", | ||
"web-vitals": "^1.1.0" | ||
}, | ||
"scripts": { | ||
... | ... | @@ -35,7 +37,12 @@ |
"test:coverage": "CI=true npm run test --env=jsdom -- --coverage", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint --fix .", | ||
"format": "prettier --write \"**/*.+(js|jsx|json|css)\"" | ||
"format": "prettier --write \"**/*.+(js|jsx|json|css)\"", | ||
"cypress:open": "cypress open", | ||
"cypress:run": "cypress run", | ||
"cypress:install": "cypress install", | ||
"cypress:gitlab": "CYPRESS_BASE_URL=http://172.17.0.3:3000/ DEBUG=cypress:* xvfb-run cypress run --headed --browser chrome", | ||
"start:gitlab": "npm start & wait-on http://172.17.0.3:3000/" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
... | ... | @@ -57,17 +64,23 @@ |
}, | ||
"jest": { | ||
"coveragePathIgnorePatterns": [ | ||
"index.js" | ||
"index.js", | ||
"src/api/*" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@testing-library/user-event": "^12.8.3", | ||
"cypress": "^6.8.0", | ||
"eslint": "^7.22.0", | ||
"eslint-plugin-cypress": "^2.11.2", | ||
"eslint-plugin-jest": "^24.3.2", | ||
"eslint-plugin-react": "^7.22.0", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"eslint-plugin-testing-library": "^3.10.1", | ||
"husky": "^5.1.3", | ||
"jest-environment-jsdom-sixteen": "^1.0.3", | ||
"lint-staged": "^10.5.4", | ||
"mutationobserver-shim": "^0.3.7", | ||
"prettier": "^2.2.1" | ||
}, | ||
"husky": { | ||
... | ... |
src/api/services/account.js
0 → 100644