Skip to content

Beginnings of an integration test for the Flow view#10

Merged
skomorokh merged 2 commits into
mainfrom
flow-integration
May 22, 2026
Merged

Beginnings of an integration test for the Flow view#10
skomorokh merged 2 commits into
mainfrom
flow-integration

Conversation

@skomorokh
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 15:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds initial Jest-based integration coverage for the FlowRoute view, along with Jest environment setup to make Stripes/React runtime dependencies work cleanly under tests.

Changes:

  • Add a FlowRoute integration test validating key rendered sections (title/shared-index link, loan conditions filtering/formatting) and action invocation.
  • Introduce Jest setup file to stub React Refresh globals and mock currency-codes/data to avoid Stripes component module-load issues in Jest.
  • Extend jest.config.js to include the new setup file while preserving the base @folio/jest-config-stripes configuration.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
test/jest/setupFiles.js Adds global stubs and a module mock to prevent Stripes/Jest interop issues during test startup.
src/routes/FlowRoute.test.js New integration-style test for Flow view rendering and action triggering behavior.
jest.config.js Appends the new setup file to the existing Stripes Jest configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@skomorokh skomorokh merged commit 04fc1d6 into main May 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants