Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

fix(deps): update dependency react-scripts to v3.4.1 #155

Closed
wants to merge 11 commits into from
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: before-push

on:
push:
branch:
branches:
- master
- development
env:
Expand Down
8 changes: 4 additions & 4 deletions .idea/watcherTasks.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

160 changes: 101 additions & 59 deletions .idea/workspace.xml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test:reset": "REACT_APP_POLLY_MODE=record yarn test --watchAll --coverage",
"reset": "yarn test --clearCache && rm -rf node_modules/ && yarn && yarn build",
"test": "CI=true react-scripts test",
"test:reset": "REACT_APP_POLLY_MODE=record yarn test",
"eject": "react-scripts eject",
"lint:js": "eslint --ext=ts,tsx --fix .",
"lint:css": "stylelint './src/**/*.{ts,tsx}'",
Expand Down Expand Up @@ -112,8 +113,7 @@
"json"
],
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/index.ts"
"src/**/*.{ts,tsx}"
],
"coverageThreshold": {
"global": {
Expand Down
4 changes: 3 additions & 1 deletion scripts/test/jest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

set -ex

yarn test --watchAll=false --coverage
# For debugg failure on CI
yarn test --showConfig
yarn test --coverage
5 changes: 5 additions & 0 deletions src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ configure({ adapter: new Adapter() });
Object.assign(window.location, {
replace: jest.fn().mockReturnValue(undefined),
});

// https://github.com/facebook/react/issues/11098
Object.assign(console, {
error: jest.fn(),
});
jest.mock('./hooks/useDataFetcher');
jest.mock('./hooks/useAccessToken');

Expand Down
1,256 changes: 660 additions & 596 deletions yarn.lock

Large diffs are not rendered by default.