Open
Conversation
- Update jest.config.js with coverage collection exclusions - Add test-utils.tsx with renderWithProviders and createMockStore helpers - Add @testing-library/jest-dom and @testing-library/react dev dependencies Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- 197 test suites covering utilities, Redux slices, async thunks, middleware, React components, hooks, caches, and service modules - Line coverage: 95.07% (5816/6117) - Statement coverage: 95.03% (6063/6380) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
- Fix TS2344 in permissions-action-creator.util.spec.ts: cast InstanceType<typeof RevokePermissionsUtil> to unknown as RevokePermissionsUtil - Fix TS2345/TS2739/TS2571/TS2322/TS2352/TS2556/TS2769 across spec files: cast sampleBody/payload as unknown as IQuery, add missing IPermissionGrant fields (clientId/resourceId), fix status literal types, cast result.payload as any, add missing PopupsComponent props, fix Provider overload - Fix Auth test infinite useEffect loop: moved state object outside mockImplementation so authToken reference is stable across re-renders - Fix 13 ESLint errors introduced by fixes: wrap long lines in permission-grants.slice.spec.ts and fix double-quotes + max-len in ShareQuery.spec.tsx - Add @babel/plugin-proposal-private-property-in-object to devDependencies (suppress babel-preset-react-app warning) - Centralize ResizeObserver mock in setupTests.ts - Fix all 204 ESLint max-len/no-empty/quotes violations across ~60 spec files Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://calm-wave-0c4fb390f-4032.eastus2.4.azurestaticapps.net |
|
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://calm-wave-0c4fb390f-4032.eastus2.4.azurestaticapps.net |
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.



Overview
This PR significantly expands the unit test suite for Microsoft Graph Explorer, increasing coverage to ~95% with ~1,900 tests across all major modules.
What it does:
Why it's needed: The codebase lacked sufficient unit test coverage, making it risky to refactor or add features confidently. This PR establishes a strong testing
baseline that catches regressions early and improves long-term maintainability.
Notes
Implemented with: https://vigilant-adventure-v9qpqwn.pages.github.io/playground/#plugins/test-sentinel?q=test-sentinel
Testing Instructions
Expected: All ~1,900 tests pass with no failures
Expected: Coverage summary shows ~95% across statements, branches, functions, and lines. A coverage/ folder is generated with a detailed HTML report