Skip to content

Fix SDK tests#13759

Merged
rickyrombo merged 9 commits intomainfrom
mjp-sdk-test
Feb 24, 2026
Merged

Fix SDK tests#13759
rickyrombo merged 9 commits intomainfrom
mjp-sdk-test

Conversation

@rickyrombo
Copy link
Contributor

  • Updates vitest and adds vitest config so that vscode can see the tests for easier integration/debugging
  • Fixes return types of entity manager versions
  • Fixes mocks to not mock the pure functions from the uploadhelpers
  • Fixes uploadAlbum to return albumId not playlistId
  • Fixes createPlaylist to allow setting playlistContents
  • Fixes updateTrack to allow uploading cover art changes

@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2026

🦋 Changeset detected

Latest commit: 6bf606d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@audius/sdk Patch
@audius/sdk-legacy Patch
@audius/sp-actions Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

"typed-emitter": "2.1.0",
"typescript": "5.4.5",
"vitest": "2.1.1",
"vitest": "3.2.4",
Copy link
Member

Choose a reason for hiding this comment

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

wow surprised this was not too difficult to go that many versions up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

some of our other packages us 0.37 😨

success: true,
transactionHash: res.transactionHash
}
return await this.recordTrackDownloadWithEntityManager(params)
Copy link
Member

Choose a reason for hiding this comment

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

what was this success: true used for before? (if anything)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it wasn't - it was added by dumb AI. The original method returned the entity manager response before the refactor

@rickyrombo rickyrombo merged commit 7265a2e into main Feb 24, 2026
4 checks passed
@rickyrombo rickyrombo deleted the mjp-sdk-test branch February 24, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants