Skip to content

Commit 04c7733

Browse files
Cafe137ferencsaraiFerenc Sárai
authored
refactor: upgrade to new bee-js (#559)
* feat: revamp bee-js * style: make check happy * chore: bump to newer bee-js * feat: add --dev global option (#562) Co-authored-by: Ferenc Sárai <[email protected]> * chore: update bee-js * fix(test): adjust mocked health response * fix(test): adjust mocked numberstrings in response * fix: fix estimated cost display in stamp create * fix(test): remove unnecessary hash format checks in pinning tests * fix(test): update cheque mock data and monetary unit references to xBZZ * fix: include full path string in download success message * fix(test): update cheque value references to xBZZ and adjust estimated cost in stamp prompt * fix: update download command output and improve test assertions for file presence * fix: convert topic string to hex format in PssCommand initialization * fix: set stdout to false in manifest download process * fix(test): remove '0x' prefix from transaction hash assertions in cheque tests * fix: update manifest command to log reference in hex format and improve result handling * fix: log node target address in hex format in manifest list command * fix: simplify BzzAddress creation by resolving feed manifest directly and handling errors * fix: filter nodes by address path in manifest download and list commands * fix: refactor download commands to streamline data handling and improve stdout behavior * fix: remove leading slashes from file paths in manifest list command output * fix: add error handling for empty node collections in download and list commands * fix: enhance node removal logic to support multiple paths and improve error handling * fix: streamline variable naming in sync command for improved readability * fix: update console message expectations in manifest sync test for improved accuracy * fix: increase test timeout to accommodate long running cryptographic functions * fix: add matcher for unordered line expectations in manifest tests * fix: add matcher for unordered line expectations in manifest tests * chore: bump to latest upcoming bee-js * ci: remove cache * refactor(test): refactor to typesafe mock responses (#563) Co-authored-by: Ferenc Sárai <[email protected]> * feat: start using size class --------- Co-authored-by: Ferenc Sárai <[email protected]> Co-authored-by: Ferenc Sárai <[email protected]>
1 parent 7ac4839 commit 04c7733

Some content is hidden

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

70 files changed

+762
-938
lines changed

.github/workflows/check.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,7 @@ jobs:
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727

28-
## Try getting the node modules from cache, if failed npm ci
29-
- uses: actions/cache@v2
30-
id: cache-npm
31-
with:
32-
path: node_modules
33-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
34-
restore-keys: |
35-
${{ runner.OS }}-node-${{ env.cache-name }}-
36-
${{ runner.OS }}-node-
37-
${{ runner.OS }}-
3828
- name: Install npm deps
39-
if: steps.cache-npm.outputs.cache-hit != 'true'
4029
run: npm ci
4130

4231
- name: Commit linting

jest.config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@ import { getPssAddress } from './test/utility/address'
88
import { getOrBuyStamp } from './test/utility/stamp'
99

1010
export default async (): Promise<Config.InitialOptions> => {
11-
process.env.MAX_UPLOAD_SIZE = '5000000' // 5 megabytes
12-
1311
/**
1412
* SKIP_WORKER can be enabled when running a subset of the tests manually,
1513
* which do not require any worker nodes, and therefore the stack
1614
* only consists a single queen node as well
1715
*/
1816
if (!process.env.SKIP_WORKER) {
19-
process.env.WORKER_PSS_ADDRESS = await getPssAddress('http://localhost:11633')
17+
process.env.WORKER_PSS_ADDRESS = (await getPssAddress('http://localhost:11633')).toCompressedHex()
2018
}
2119

2220
if (!process.env.TEST_STAMP) {
23-
process.env.TEST_STAMP = await getOrBuyStamp()
21+
process.env.TEST_STAMP = (await getOrBuyStamp()).toHex()
2422
}
2523

2624
return {
@@ -53,6 +51,6 @@ export default async (): Promise<Config.InitialOptions> => {
5351
testPathIgnorePatterns: ['/node_modules/'],
5452

5553
// Increase timeout since we have long running cryptographic functions
56-
testTimeout: Dates.minutes(5),
54+
testTimeout: Dates.minutes(6),
5755
}
5856
}

0 commit comments

Comments
 (0)