Skip to content

Conversation

adityathebe
Copy link
Member

Summary

  • Fixed TypeScript errors in test files by adding missing required properties
  • Added isViewer property to UserAccessState mocks in CheckRunNow tests
  • Added required properties (id, name, status, playbook_run_id, start_time) to CategorizedPlaybookRunAction mocks
  • Added missing actions array to Playbook spec
  • Added missing name property to PlaybookAction

Test plan

  • npm run typecheck passes with no errors

Copy link

vercel bot commented Oct 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
aws-preview Ready Ready Preview Oct 9, 2025 5:25pm
flanksource-ui Ready Ready Preview Oct 9, 2025 5:25pm

- 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
@adityathebe adityathebe force-pushed the fix/test-type-errors branch from f2e7c03 to 9929c24 Compare October 9, 2025 16:54
@adityathebe adityathebe enabled auto-merge (squash) October 9, 2025 16:54
@adityathebe adityathebe requested a review from Copilot October 9, 2025 16:56
Copy link
Contributor

@Copilot 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

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.

@adityathebe adityathebe merged commit 6d68c41 into main Oct 9, 2025
9 of 11 checks passed
@adityathebe adityathebe deleted the fix/test-type-errors branch October 9, 2025 16:59
Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for goofy-euclid-75956c ready!

Name Link
🔨 Latest commit 9929c24
🔍 Latest deploy log https://app.netlify.com/projects/goofy-euclid-75956c/deploys/68e7e8d263f31f0008722075
😎 Deploy Preview https://deploy-preview-2654--goofy-euclid-75956c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for flanksource-demo-stable ready!

Name Link
🔨 Latest commit 9929c24
🔍 Latest deploy log https://app.netlify.com/projects/flanksource-demo-stable/deploys/68e7e8d2c7c1ab000807e226
😎 Deploy Preview https://deploy-preview-2654--flanksource-demo-stable.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for clerk-saas-ui ready!

Name Link
🔨 Latest commit 9929c24
🔍 Latest deploy log https://app.netlify.com/projects/clerk-saas-ui/deploys/68e7e8d2e5f99c0008d3da2c
😎 Deploy Preview https://deploy-preview-2654--clerk-saas-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant