Skip to content

Commit

Permalink
test: use electron
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed May 10, 2024
1 parent 53c02ba commit 3af2552
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/neuron-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"start": "cross-env DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-app-rewired start",
"lint": "eslint --fix --ext .tsx,.ts,.js src",
"test": "react-app-rewired test --env=jsdom --watchAll=false",
"build": "cross-env DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-app-rewired build",
"build": "cross-env CI=false DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-app-rewired build",
"clean": "npx rimraf build",
"precommit": "lint-staged",
"storybook": "storybook dev -p 9009 -s public",
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@types/sqlite3": "3.1.11",
"@types/uuid": "8.3.4",
"devtron": "1.4.0",
"electron": "30.0.0",
"electron": "28.1.0",
"electron-builder": "24.9.1",
"electron-devtools-installer": "3.2.0",
"jest-when": "3.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const appController = AppController.getInstance()
const singleInstanceLock = app.requestSingleInstanceLock()
if (singleInstanceLock) {
app.on('ready', async () => {
logger.info('App:\tNeuron is starting')
logger.info('App:\tNeuron is starting with test electron 28')
changeLanguage(SettingsService.getInstance().locale)

appController.start()
Expand Down
16 changes: 16 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5685,6 +5685,13 @@
dependencies:
undici-types "~5.26.4"

"@types/node@^18.11.18":
version "18.19.33"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.33.tgz#98cd286a1b8a5e11aa06623210240bcc28e95c48"
integrity sha512-NR9+KrpSajr2qBVp/Yt5TU/rp+b5Mayi3+OlMlcg2cVCfRmcG5PWZ7S4+MG9PZ5gWBoc9Pd0BKSRViuBCRPu0A==
dependencies:
undici-types "~5.26.4"

"@types/node@^20.9.0":
version "20.12.7"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.7.tgz#04080362fa3dd6c5822061aa3124f5c152cff384"
Expand Down Expand Up @@ -9615,6 +9622,15 @@ [email protected]:
jsonfile "^4.0.0"
mkdirp "^0.5.1"

[email protected]:
version "28.1.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-28.1.0.tgz#9de1ecdaafcb0ec5753827f14dfb199e6c84545e"
integrity sha512-82Y7o4PSWPn1o/aVwYPsgmBw6Gyf2lVHpaBu3Ef8LrLWXxytg7ZRZr/RtDqEMOzQp3+mcuy3huH84MyjdmP50Q==
dependencies:
"@electron/get" "^2.0.0"
"@types/node" "^18.11.18"
extract-zip "^2.0.1"

[email protected]:
version "30.0.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-30.0.0.tgz#6b72a27dcc46759fac5f12e147ef64554e596391"
Expand Down

1 comment on commit 3af2552

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 9026124788

Please sign in to comment.