Skip to content

Commit

Permalink
chore: package upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
Esya committed Aug 23, 2021
1 parent 5c88efd commit 9e30d00
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 78 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
"@ledgerhq/hw-transport-webusb": "6.3.0",
"@oasisprotocol/client": "0.1.0-alpha5",
"@oasisprotocol/ledger": "0.2.0",
"@reduxjs/toolkit": "1.5.1",
"base64-arraybuffer": "0.2.0",
"@reduxjs/toolkit": "1.6.1",
"base64-arraybuffer": "1.0.1",
"bech32": "2.0.0",
"bip39": "3.0.4",
"body-scroll-lock": "3.1.5",
"body-scroll-lock": "4.0.0-beta.0",
"chalk": "4.1.2",
"connected-react-router": "6.9.1",
"copy-to-clipboard": "3.3.1",
Expand All @@ -92,10 +92,10 @@
"qrcode.react": "1.0.1",
"react": "17.0.2",
"react-app-polyfill": "2.0.0",
"react-data-table-component": "6.11.7",
"react-data-table-component": "6.11.8",
"react-dom": "17.0.2",
"react-helmet-async": "1.0.9",
"react-i18next": "11.11.3",
"react-i18next": "11.11.4",
"react-redux": "7.2.4",
"react-router-dom": "5.2.0",
"react-scripts": "4.0.3",
Expand All @@ -117,7 +117,7 @@
"@cypress/instrument-cra": "1.4.0",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"@testing-library/cypress": "7.0.7",
"@testing-library/cypress": "8.0.0",
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "12.0.0",
"@testing-library/user-event": "13.2.1",
Expand All @@ -139,7 +139,7 @@
"@types/valid-url": "1.0.3",
"@types/webpack": "5.28.0",
"@types/webpack-env": "1.16.2",
"cypress": "7.6.0",
"cypress": "8.3.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "3.4.1",
"eslint-plugin-react-hooks": "4.2.0",
Expand All @@ -155,14 +155,14 @@
"postinstall-postinstall": "2.1.0",
"redux-saga-test-plan": "4.0.3",
"sanitize.css": "12.0.1",
"semantic-release": "17.4.4",
"semantic-release": "17.4.5",
"serve": "12.0.0",
"shelljs": "0.8.4",
"stylelint": "13.13.1",
"stylelint-config-recommended": "5.0.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-processor-styled-components": "1.10.0",
"ts-node": "10.1.0"
"ts-node": "10.2.1"
},
"engines": {
"node": ">=10.13.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ describe('<ValidatorList />', () => {
userEvent.click(row)

details = screen.getByTestId('validator-item')
waitFor(() => expect(screen.getByTestId('validator-item-name').textContent).toEqual('test-validator2'))
await waitFor(() =>
expect(screen.getByTestId('validator-item-name').textContent).toEqual('test-validator2'),
)
expect(details).toBeVisible()
})
})
8 changes: 5 additions & 3 deletions src/store/configureStore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { routerMiddleware } from 'connected-react-router'
import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'
import { configureStore } from '@reduxjs/toolkit'
import { createInjectorsEnhancer } from 'redux-injectors'
import createSagaMiddleware from 'redux-saga'

Expand Down Expand Up @@ -33,11 +33,13 @@ export function configureAppStore(state?: Partial<RootState>) {

const store = configureStore({
reducer: createReducer(),
middleware: [...getDefaultMiddleware(), ...middlewares],
middleware: getDefaultMiddleware => getDefaultMiddleware().concat(middlewares),
devTools:
/* istanbul ignore next line */
process.env.NODE_ENV !== 'production' || process.env.PUBLIC_URL.length > 0,
enhancers,
// A bit dirty because of https://github.com/react-boilerplate/redux-injectors/issues/27
// Waiting on redux-injectors to fix their typings for recent reduxjs/toolkit
enhancers: enhancers as any,
preloadedState: state,
})

Expand Down
Loading

0 comments on commit 9e30d00

Please sign in to comment.