Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed Nov 2, 2022
1 parent 4f0e04c commit 39d3b23
Show file tree
Hide file tree
Showing 13 changed files with 23,567 additions and 23,746 deletions.
22,364 changes: 11,157 additions & 11,207 deletions tests/testcases_current.json

Large diffs are not rendered by default.

24,896 changes: 12,385 additions & 12,511 deletions tests/testcases_previous.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions tests_tools/Cargo.lock

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

21 changes: 11 additions & 10 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,31 @@
"Ledger"
],
"scripts": {
"test": "jest -t 'Recovery' && jest -t 'Standard'",
"testSR25519": "jest tests/sr25519.test.ts"
"test": "ts-node tests/pullImageKillOld.ts && jest -t 'Recovery' && jest -t 'Standard'",
"testSR25519": "ts-node tests/pullImageKillOld.ts && jest tests/sr25519.test.ts"
},
"dependencies": {
"@zondax/ledger-substrate": "^0.39.0",
"@zondax/zemu": "^0.33.2"
"@zondax/zemu": "^0.34.0"
},
"devDependencies": {
"@types/jest": "^27.0.3",
"@types/jest": "^29.2.1",
"@types/ledgerhq__hw-transport": "^4.21.4",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"blakejs": "^1.1.1",
"crypto-js": "4.1.1",
"ed25519-supercop": "^2.0.1",
"eslint": "^7",
"eslint": "^8.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-jest": "^27.1.3",
"eslint-plugin-prettier": "^4.0.0",
"jest": "27.4.5",
"jest": "29.2.2",
"jssha": "^3.2.0",
"prettier": "^2.5.1",
"ts-jest": "^27.1.1",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "^4.5.3"
}
}
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions tests_zemu/tests/pullImageKillOld.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Zemu from '@zondax/zemu'

Zemu.checkAndPullImage()
Zemu.stopAllEmuContainers()
4 changes: 0 additions & 4 deletions tests_zemu/tests/sr25519.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ const defaultOptions = {

jest.setTimeout(180000)

beforeAll(async () => {
await Zemu.checkAndPullImage()
})

describe('SR25519', function () {
test('get address sr25519', async function () {
const sim = new Zemu(APP_PATH)
Expand Down
4 changes: 0 additions & 4 deletions tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ const defaultOptions = {

jest.setTimeout(180000)

beforeAll(async () => {
await Zemu.checkAndPullImage()
})

describe('Standard', function () {
test.each(models)('can start and stop container', async function (m) {
const sim = new Zemu(m.path)
Expand Down

0 comments on commit 39d3b23

Please sign in to comment.