Skip to content

Commit 945b391

Browse files
authored
Merge pull request #117 from Concordium/governance-app/update-auths-snapshots
Governance app/update auths snapshots
2 parents eecd51a + fd01ddf commit 945b391

94 files changed

Lines changed: 7505 additions & 27 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-pipeline.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ jobs:
107107
name: End to end tests
108108
needs: [compile]
109109
runs-on: ubuntu-latest
110+
defaults:
111+
run:
112+
working-directory: tests
110113

111114
steps:
112115
- uses: actions/checkout@v5
@@ -119,21 +122,18 @@ jobs:
119122
node-version: "22"
120123

121124
- name: Setup dependencies
122-
run: |
123-
cd tests && yarn
125+
run: yarn install --immutable
124126

125127
- name: Create directory for binaries
126-
run: |
127-
mkdir tests/bin
128+
run: mkdir bin
128129

129130
- name: Download binaries
130131
uses: actions/download-artifact@v5
131132
with:
132133
path: tests/bin
133134

134135
- name: Run tests
135-
run: |
136-
cd tests && yarn test
136+
run: yarn test
137137

138138
run_unit_test:
139139
name: Unit test

tests/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.yarn/*
2+
!.yarn/patches
3+
!.yarn/plugins
4+
!.yarn/releases
5+
!.yarn/sdks
6+
!.yarn/versions
7+
8+
!yarn.lock
9+
10+
node_modules
11+
.pnp.*
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/dist/Zemu.js b/dist/Zemu.js
2+
index 2960db7c6fced864b017c8540aac5432449e5251..1b178897da31249656b8fa1ee209287a5f877fe3 100644
3+
--- a/dist/Zemu.js
4+
+++ b/dist/Zemu.js
5+
@@ -478,6 +478,9 @@ class Zemu {
6+
const modelWindow = this.getWindowRect();
7+
if (filename !== '')
8+
this.saveSnapshot(data, filename);
9+
+ if (process.env.ZEMU_UPDATE_SNAPSHOTS && filename.includes('snapshots-tmp'))
10+
+ this.saveSnapshot(data, `${filename}`.replace('snapshots-tmp', 'snapshots'));
11+
+
12+
const rect = {
13+
height: modelWindow.height,
14+
width: modelWindow.width,

tests/.yarn/releases/yarn-4.9.4.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

tests/.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nodeLinker: node-modules
2+
yarnPath: .yarn/releases/yarn-4.9.4.cjs

tests/README.md

Lines changed: 79 additions & 0 deletions

tests/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "test",
33
"version": "1.0.0",
4+
"packageManager": "yarn@4.9.4",
45
"description": "End-to-end test suite for Concordium Ledger application",
56
"dependencies": {
67
"@ledgerhq/hw-transport": "^6.28.2",
7-
"@zondax/zemu": "^0.61.0",
8+
"@zondax/zemu": "patch:@zondax/zemu@npm%3A0.61.11#~/.yarn/patches/@zondax-zemu-npm-0.61.11-7b600fce36.patch",
89
"jest": "^29.4.3",
910
"ts-jest": "^29.0.5"
1011
},
284 Bytes
241 Bytes
244 Bytes

0 commit comments

Comments
 (0)