Skip to content

Commit

Permalink
chore: tests running
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain committed Sep 25, 2024
1 parent 0b814e6 commit 3b5f3c3
Show file tree
Hide file tree
Showing 43 changed files with 517 additions and 384 deletions.
2 changes: 1 addition & 1 deletion packages/api/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
};
28 changes: 14 additions & 14 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,44 +139,44 @@
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@react-native/babel-preset": "0.74.86",
"@react-native/eslint-config": "0.74.86",
"@react-native/metro-config": "0.74.86",
"@react-native/typescript-config": "0.74.86",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@release-it/conventional-changelog": "^5.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react-native": "^12.3.0",
"@testing-library/react-native": "^12.7.2",
"@tsconfig/react-native": "^3.0.3",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"@yoroi/types": "1.5.8",
"axios": "^1.5.0",
"axios-mock-adapter": "^1.21.5",
"babel-jest": "^29.6.3",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
"dependency-cruiser": "^13.1.1",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-ft-flow": "^3.0.0",
"eslint-plugin-prettier": "^4.0.0",
"flowgen": "^1.21.0",
"jest": "^29.6.3",
"pod-install": "^0.1.0",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "0.74.4",
"react-native-builder-bob": "^0.23.2",
"react-query": "^3.39.3",
"react-test-renderer": "18.2.0",
"release-it": "^15.0.0",
"typescript": "5.0.4",
"zod": "^3.22.1"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/claim/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
};
28 changes: 15 additions & 13 deletions packages/claim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,44 +145,46 @@
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@react-native/babel-preset": "0.74.86",
"@react-native/eslint-config": "0.74.86",
"@react-native/metro-config": "0.74.86",
"@react-native/typescript-config": "0.74.86",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@release-it/conventional-changelog": "^5.0.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react-native": "^12.3.0",
"@testing-library/react-native": "^12.7.2",
"@tsconfig/react-native": "^3.0.3",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"@yoroi/common": "^1.5.4",
"@yoroi/portfolio": "1.0.3",
"@yoroi/types": "1.5.8",
"babel-jest": "^29.6.3",
"bignumber.js": "^9.0.1",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
"dependency-cruiser": "^13.1.1",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-ft-flow": "^3.0.0",
"eslint-plugin-prettier": "^4.0.0",
"flowgen": "^1.21.0",
"immer": "^10.0.2",
"jest": "^29.6.3",
"pod-install": "^0.1.0",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "0.74.4",
"react-native-builder-bob": "^0.23.2",
"react-query": "^3.39.3",
"release-it": "^15.0.0"
"react-test-renderer": "18.2.0",
"release-it": "^15.0.0",
"typescript": "5.0.4"
},
"peerDependencies": {
"@yoroi/common": "1.5.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
};
28 changes: 14 additions & 14 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,48 +137,48 @@
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@react-native/babel-preset": "0.74.86",
"@react-native/eslint-config": "0.74.86",
"@react-native/metro-config": "0.74.86",
"@react-native/typescript-config": "0.74.86",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@release-it/conventional-changelog": "^5.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react-native": "^12.3.0",
"@testing-library/react-native": "^12.7.2",
"@tsconfig/react-native": "^3.0.3",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"@yoroi/types": "1.5.8",
"axios": "^1.5.0",
"axios-mock-adapter": "^1.21.5",
"babel-jest": "^29.6.3",
"bignumber.js": "^9.0.1",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
"dependency-cruiser": "^13.1.1",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-ft-flow": "^3.0.0",
"eslint-plugin-prettier": "^4.0.0",
"flowgen": "^1.21.0",
"immer": "^10.0.3",
"jest": "^29.6.3",
"pod-install": "^0.1.0",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "0.74.4",
"react-native-builder-bob": "^0.23.2",
"react-native-mmkv": "^2.11.0",
"react-query": "^3.39.3",
"react-test-renderer": "18.2.0",
"release-it": "^15.0.0",
"rxjs": "^7.8.1",
"typescript": "5.0.4",
"zod": "^3.22.1"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {useMutationWithInvalidations} from './useMutationWithInvalidations'
import {QueryClient, QueryClientProvider} from 'react-query'
import React, {PropsWithChildren} from 'react'
import {act, renderHook, waitFor} from '@testing-library/react-native'
import {waitFor} from '@testing-library/react-native'
import {renderHook} from '@testing-library/react-hooks'

const mutationFn = () => Promise.resolve(true)

Expand All @@ -18,9 +19,7 @@ describe('useMutationWithInvalidations', () => {
{wrapper},
)

await act(async () => {
result.current.mutate(undefined)
})
result.current.mutate(undefined)

await waitFor(() => result.current.isSuccess)

Expand Down
2 changes: 1 addition & 1 deletion packages/dapp-connector/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
}
31 changes: 16 additions & 15 deletions packages/dapp-connector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,45 +146,46 @@
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@commitlint/config-conventional": "^17.0.2",
"@emurgo/cross-csl-nodejs": "5.1.0-beta.1",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@react-native/babel-preset": "0.74.86",
"@react-native/eslint-config": "0.74.86",
"@react-native/metro-config": "0.74.86",
"@react-native/typescript-config": "0.74.86",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@release-it/conventional-changelog": "^5.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react-native": "^12.3.0",
"@testing-library/react-native": "^12.7.2",
"@tsconfig/react-native": "^3.0.3",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"@yoroi/types": "1.5.8",
"axios-mock-adapter": "^1.21.5",
"babel-jest": "^29.6.3",
"bignumber.js": "^9.0.1",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
"dependency-cruiser": "^13.1.1",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-ft-flow": "^3.0.0",
"eslint-plugin-prettier": "^4.0.0",
"flowgen": "^1.21.0",
"jest": "^29.6.3",
"pod-install": "^0.1.0",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "0.74.4",
"react-native-builder-bob": "^0.20.4",
"react-native-mmkv": "^2.11.0",
"react-query": "^3.39.3",
"release-it": "^15.0.0"
"react-test-renderer": "18.2.0",
"release-it": "^15.0.0",
"typescript": "5.0.4"
},
"peerDependencies": {
"bignumber.js": "^9.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/exchange/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
};
26 changes: 14 additions & 12 deletions packages/exchange/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,42 +132,44 @@
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@react-native/babel-preset": "0.74.86",
"@react-native/eslint-config": "0.74.86",
"@react-native/metro-config": "0.74.86",
"@react-native/typescript-config": "0.74.86",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4",
"@commitlint/config-conventional": "^17.0.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-community/eslint-config": "^3.0.2",
"@release-it/conventional-changelog": "^5.0.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react-native": "^12.3.0",
"@testing-library/react-native": "^12.7.2",
"@tsconfig/react-native": "^3.0.3",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"@yoroi/types": "1.5.8",
"axios": "^1.5.0",
"babel-jest": "^29.6.3",
"commitlint": "^17.0.2",
"del-cli": "^5.0.0",
"dependency-cruiser": "^13.1.1",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-ft-flow": "^3.0.0",
"eslint-plugin-prettier": "^4.0.0",
"flowgen": "^1.21.0",
"immer": "^10.0.2",
"jest": "^29.6.3",
"pod-install": "^0.1.0",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "0.74.4",
"react-native-builder-bob": "^0.23.2",
"react-query": "^3.39.3",
"react-test-renderer": "18.2.0",
"release-it": "^15.0.0",
"typescript": "5.0.4",
"zod": "^3.22.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/explorers/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
};
Loading

0 comments on commit 3b5f3c3

Please sign in to comment.