Fix Jest config, test script, and redisService mock for test suite#543
Open
Robinsonchiziterem wants to merge 1 commit into
Open
Fix Jest config, test script, and redisService mock for test suite#543Robinsonchiziterem wants to merge 1 commit into
Robinsonchiziterem wants to merge 1 commit into
Conversation
|
@Robinsonchiziterem is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Robinsonchiziterem Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#501 Pull Request
name: Pull Request
about: Submit changes to Soroban Playground
title: 'Fix Jest configuration and test suite failures'
labels: 'bug'
assignees: ''
What does this PR do?
jest.config.cjsto correctly handle ESM modules and added experimental VM options.package.jsontest script to invoke Jest with required flags.redisServicemock intests/syntheticAssets.unit.test.jsto provide properjest.fn()methods.babel.config.cjsand ensured it is used by Jest.databaseService.js,redisService.js,syntheticAssetsService.js,logger.js) to align with the new test environment.These changes resolve the failing test suite and allow all unit, integration, and e2e tests to pass.
Related Issue
Closes #
Type of Change
🗂️ Affected Area(s)
How Has This Been Tested?
npm testin thebackenddirectory; all tests passed.npm test)Screenshots / Demo (if applicable)
Before
After
Checklist
Related Issues or References
Additional Context
This PR addresses the failing test suite caused by Jest misconfiguration with ESM modules and an incorrectly mocked
redisService. The changes are limited to the backend and test setup, ensuring no impact on the frontend or contracts.Closes #501