Skip to content

refactor: update to new bee-js #559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e854332
feat: revamp bee-js
Cafe137 Feb 10, 2025
753dca9
style: make check happy
Cafe137 Feb 10, 2025
d8f6c62
chore: bump to newer bee-js
Cafe137 Feb 11, 2025
3c8b4f6
feat: add --dev global option (#562)
ferencsarai Feb 19, 2025
45d6544
chore: update bee-js
Cafe137 Feb 25, 2025
c9752b7
chore: merge
Cafe137 Feb 25, 2025
7662d1a
fix(test): adjust mocked health response
Cafe137 Feb 25, 2025
a0ab4ed
fix(test): adjust mocked numberstrings in response
Cafe137 Feb 25, 2025
96ebaa6
fix: fix estimated cost display in stamp create
Cafe137 Feb 25, 2025
e1a0a1b
fix(test): remove unnecessary hash format checks in pinning tests
Cafe137 Feb 25, 2025
8ddffa5
fix(test): update cheque mock data and monetary unit references to xBZZ
Cafe137 Feb 25, 2025
4369b16
fix: include full path string in download success message
Cafe137 Feb 25, 2025
7888654
fix(test): update cheque value references to xBZZ and adjust estimate…
Cafe137 Feb 25, 2025
34df7d5
fix: update download command output and improve test assertions for f…
Cafe137 Feb 25, 2025
3f2d4df
fix: convert topic string to hex format in PssCommand initialization
Cafe137 Feb 25, 2025
7646daf
fix: set stdout to false in manifest download process
Cafe137 Feb 25, 2025
a654f9c
fix(test): remove '0x' prefix from transaction hash assertions in che…
Cafe137 Feb 25, 2025
4d7537b
fix: update manifest command to log reference in hex format and impro…
Cafe137 Feb 25, 2025
af59c37
fix: log node target address in hex format in manifest list command
Cafe137 Feb 25, 2025
7905d0c
fix: simplify BzzAddress creation by resolving feed manifest directly…
Cafe137 Feb 25, 2025
1e36b99
fix: filter nodes by address path in manifest download and list commands
Cafe137 Feb 25, 2025
5c2de05
fix: refactor download commands to streamline data handling and impro…
Cafe137 Feb 25, 2025
f08ef1d
fix: remove leading slashes from file paths in manifest list command …
Cafe137 Feb 25, 2025
1bf4510
fix: add error handling for empty node collections in download and li…
Cafe137 Feb 25, 2025
b00d432
fix: enhance node removal logic to support multiple paths and improve…
Cafe137 Feb 26, 2025
3c0755a
fix: streamline variable naming in sync command for improved readability
Cafe137 Feb 26, 2025
9c27c8b
fix: update console message expectations in manifest sync test for im…
Cafe137 Feb 26, 2025
8f5adfd
fix: increase test timeout to accommodate long running cryptographic …
Cafe137 Feb 26, 2025
50ea189
fix: add matcher for unordered line expectations in manifest tests
Cafe137 Feb 26, 2025
ed894c1
fix: add matcher for unordered line expectations in manifest tests
Cafe137 Feb 26, 2025
fa8e4bb
chore: bump to latest upcoming bee-js
Cafe137 Mar 5, 2025
cb51146
ci: remove cache
Cafe137 Mar 5, 2025
773fae8
refactor(test): refactor to typesafe mock responses (#563)
ferencsarai Mar 5, 2025
45efded
feat: start using size class
Cafe137 Mar 5, 2025
bd33bae
chore: merge
Cafe137 Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

## Try getting the node modules from cache, if failed npm ci
- uses: actions/cache@v2
id: cache-npm
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-${{ env.cache-name }}-
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install npm deps
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

- name: Commit linting
Expand Down
8 changes: 3 additions & 5 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ import { getPssAddress } from './test/utility/address'
import { getOrBuyStamp } from './test/utility/stamp'

export default async (): Promise<Config.InitialOptions> => {
process.env.MAX_UPLOAD_SIZE = '5000000' // 5 megabytes

/**
* SKIP_WORKER can be enabled when running a subset of the tests manually,
* which do not require any worker nodes, and therefore the stack
* only consists a single queen node as well
*/
if (!process.env.SKIP_WORKER) {
process.env.WORKER_PSS_ADDRESS = await getPssAddress('http://localhost:11633')
process.env.WORKER_PSS_ADDRESS = (await getPssAddress('http://localhost:11633')).toCompressedHex()
}

if (!process.env.TEST_STAMP) {
process.env.TEST_STAMP = await getOrBuyStamp()
process.env.TEST_STAMP = (await getOrBuyStamp()).toHex()
}

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

// Increase timeout since we have long running cryptographic functions
testTimeout: Dates.minutes(5),
testTimeout: Dates.minutes(6),
}
}
Loading
Loading