Skip to content

Commit

Permalink
Replace faker with @faker-js/faker (1732)
Browse files Browse the repository at this point in the history
### Description

Replaces `faker` with `@faker-js/faker` some context around this change can be [read here](https://github.com/faker-js/faker#faq---what-happened-to-the-original-fakerjs).

### Other changes

N/A

### Tested

N/A


### How others should test

N/A

### Related issues

N/A

### Backwards compatibility

Yes
  • Loading branch information
MuckT authored Jan 12, 2022
1 parent e6a7926 commit 2765358
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/mobile/e2e/src/usecases/SecureSend.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { enterPinUiIfNecessary, inputNumberKeypad, sleep } from '../utils/utils'
import { dismissBanners } from '../utils/banners'
import { reloadReactNative } from '../utils/retries'
const faker = require('faker')
const faker = require('@faker-js/faker')

const PHONE_NUMBER = '+12057368924'
const LAST_ACCEOUNT_CHARACTERS = 'FD08'
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/e2e/src/usecases/Send.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { enterPinUiIfNecessary, inputNumberKeypad, sleep } from '../utils/utils'
import { DEFAULT_RECIPIENT_ADDRESS } from '../utils/consts'
import { dismissBanners } from '../utils/banners'
import { reloadReactNative } from '../utils/retries'
const faker = require('faker')
const faker = require('@faker-js/faker')

const AMOUNT_TO_SEND = '0.1'
const AMOUNT_TO_REQUEST = '0.1'
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/e2e/src/usecases/Settings.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { dismissBanners } from '../utils/banners'
import { scrollIntoView, sleep } from '../utils/utils'
import { reloadReactNative } from '../utils/retries'
const faker = require('faker')
const faker = require('@faker-js/faker')

export default Settings = () => {
beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react-native": "^3.11.0",
"faker": "^5.5.3",
"@faker-js/faker": "^5.5.3",
"jest-fetch-mock": "^3.0.3",
"metro-react-native-babel-preset": "^0.59.0",
"mocha": "^7.1.1",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2731,6 +2731,11 @@
unique-filename "^1.1.1"
which "^1.3.1"

"@faker-js/faker@^5.5.3":
version "5.5.3"
resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-5.5.3.tgz#18e3af6b8eae7984072bbeb0c0858474d7c4cefe"
integrity sha512-R11tGE6yIFwqpaIqcfkcg7AICXzFg14+5h5v0TfF/9+RMDL6jhzCy/pxHVOfbALGdtVYdt6JdR21tuxEgl34dw==

"@google-cloud/common@^3.8.1":
version "3.8.1"
resolved "https://registry.yarnpkg.com/@google-cloud/common/-/common-3.8.1.tgz#1313c55bb66df88f69bf7c828135fae25fbd2036"
Expand Down Expand Up @@ -10400,11 +10405,6 @@ extsprintf@^1.2.0:
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"
integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8=

faker@^5.5.3:
version "5.5.3"
resolved "https://registry.yarnpkg.com/faker/-/faker-5.5.3.tgz#c57974ee484431b25205c2c8dc09fda861e51e0e"
integrity sha512-wLTv2a28wjUyWkbnX7u/ABZBkUkIF2fCd73V6P2oFqEGEktDfzWx4UxrSqtPRw0xPRAcjeAOIiJWqZm3pP4u3g==

fancy-log@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.2.tgz#f41125e3d84f2e7d89a43d06d958c8f78be16be1"
Expand Down

0 comments on commit 2765358

Please sign in to comment.