-
Notifications
You must be signed in to change notification settings - Fork 23
fix: resolve TypeScript errors in test files #2654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Add missing isViewer property to UserAccessState mocks - Add required properties to CategorizedPlaybookRunAction test mocks - Add missing actions array to Playbook spec - Add missing name property to PlaybookAction
f2e7c03
to
9929c24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR resolves TypeScript compilation errors in test files by adding missing required properties to mock objects. The changes ensure that all test mocks conform to the expected TypeScript interfaces, allowing the codebase to pass type checking.
Key Changes
- Added missing required properties to test mocks across multiple test files
- Added
isViewer
property to UserAccessState mocks - Added required properties (
id
,name
,status
,playbook_run_id
,start_time
) to CategorizedPlaybookRunAction mocks
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
PlaybookSpecCard.unit.test.tsx | Added missing name property to PlaybookAction mock |
SubmitPlaybookRunForm.unit.test.tsx | Added missing actions array to Playbook spec mock |
PlaybooksActionsResults.unit.test.tsx | Added required properties to CategorizedPlaybookRunAction mocks |
CheckRunNow.unit.test.tsx | Added missing isViewer property to UserAccessState mocks |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
✅ Deploy Preview for goofy-euclid-75956c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for flanksource-demo-stable ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for clerk-saas-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Summary
isViewer
property to UserAccessState mocks in CheckRunNow testsid
,name
,status
,playbook_run_id
,start_time
) to CategorizedPlaybookRunAction mocksactions
array to Playbook specname
property to PlaybookActionTest plan
npm run typecheck
passes with no errors