-
Notifications
You must be signed in to change notification settings - Fork 1
Implement a pause button in TypeScript and Jest project #5
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
base: main
Are you sure you want to change the base?
Conversation
Coverage Report
Tags
Impacted Files
Last update to a620a7e at 00:45am UTC |
| cols={cols} | ||
| onTilePressed={(row: number, col: number) => | ||
| row === activeTile?.row && col === activeTile?.col && incrementScore() | ||
| !isPaused && |
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.
None of these branches are covered by tests.
| incrementScore() | ||
| } | ||
| activeTile={activeTile} | ||
| activeTile={!isPaused ? activeTile : undefined} |
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.
None of these branches are covered by tests.
| timeRemaining, | ||
| isPaused, | ||
| toggleTimer, | ||
| } = useGameManager(rows, cols, difficulty); |
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.
This line is not covered by any tests.
Description
This is a simple PR which adds a Pause button to the TypeScript and Jest project.