-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
needs triageLabel for identifying issues requiring initial review or classificationLabel for identifying issues requiring initial review or classification
Description
Describe the contribution
Use command: "test:sanity": "node --experimental-vm-modules node_modules/.bin/jest --testNamePattern='\[sanity\]'",
Tasks:
-
Configuration Check:
- Verify that the project is correctly configured using
isProjectConfigured
. - Ensure the proper resolution of the post-install script path.
- Verify that the project is correctly configured using
-
Command-Line Interface (CLI):
- Test that the CLI correctly parses the framework argument (e.g.,
cypress
,playwright
). - Validate that the CLI recognizes and handles the
todays-report
andmonthly-summary
commands. - Ensure that the CLI correctly processes optional flags (
--csv
,--duplicate
). - Verify that the help message (
--help
) displays correctly.
- Test that the CLI correctly parses the framework argument (e.g.,
-
Google Sheets Configuration:
- Verify that the script checks for the presence of Google Sheets configuration (
GOOGLE_KEYFILE_PATH
,GOOGLE_SHEET_ID
). - Ensure the appropriate handling when Google Sheets configuration is missing (default to CSV).
- Verify that the script checks for the presence of Google Sheets configuration (
-
Post-Install Script Execution:
- Test the execution of the post-install script if the project is not configured.
- Validate the handling of errors during the execution of the post-install script.
-
Daily Report Generation:
- Verify that the
handleDailyReport
function is called with the correct options when thetodays-report
command is issued. - Ensure that errors during daily report generation are handled gracefully.
- Verify that the
-
Monthly Summary Generation:
- Verify that the
handleSummary
function is called with the correct options when themonthly-summary
command is issued. - Ensure that errors during monthly summary generation are handled gracefully.
- Test that CSV output for monthly summaries is not supported and returns the correct error message.
- Verify that the
-
Main Function Execution:
- Validate that the
main
function is called with the correct options when no specific command is issued. - Ensure that errors during the main function execution are handled gracefully.
- Validate that the
Type of contribution
✨ Feature
Current behavior (if applicable)
No response
Suggested solution and implementation (if applicable)
No response
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
needs triageLabel for identifying issues requiring initial review or classificationLabel for identifying issues requiring initial review or classification