Skip to content

Commit

Permalink
👻 Add unit tests and hook for useAssessmentStatus (#1758) (#1793)
Browse files Browse the repository at this point in the history
Inspired by latest QE issues surfacing around status regressions.
Resolves https://issues.redhat.com/browse/MTA-2410
Resolves https://issues.redhat.com/browse/MTA-2409
Resolves #1646

** Integrates MSW with unit test RTL framework to handle mock data
without needing to add any extra stubs.

---------

Signed-off-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>

Signed-off-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
  • Loading branch information
konveyor-ci-bot[bot] and ibolton336 authored Mar 22, 2024
1 parent 6da40f3 commit d2a9d6d
Show file tree
Hide file tree
Showing 10 changed files with 597 additions and 562 deletions.
1 change: 1 addition & 0 deletions client/config/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const config: JestConfigWithTsJest = {
"@app/(.*)": "<rootDir>/src/app/$1",
"@assets/(.*)":
"<rootDir>../node_modules/@patternfly/react-core/dist/styles/assets/$1",
"^@mocks/(.*)$": "<rootDir>/src/mocks/$1",
},

// A list of paths to directories that Jest should use to search for files
Expand Down
Loading

0 comments on commit d2a9d6d

Please sign in to comment.