Skip to content
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

Test: handler-resolver.ts tests + adding tests to github actions workflow #45

Merged
merged 7 commits into from
Feb 22, 2024

Conversation

jasnoo
Copy link
Contributor

@jasnoo jasnoo commented Feb 21, 2024

Added tests for libs/handler-resolver.ts + updated ci.yml to include running tests

@jasnoo jasnoo marked this pull request as draft February 21, 2024 19:00
@jasnoo jasnoo marked this pull request as ready for review February 21, 2024 19:27
@jasnoo jasnoo requested a review from namanaman February 21, 2024 19:27
Copy link
Contributor

@namanaman namanaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks for testing this so thoroughly. I actually didn't write this code, it came with the skeleton, had no idea what it did. Now i do!

@@ -0,0 +1,63 @@
import { handlerPath } from './handler-resolver';

describe('handlerPath success cases', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I sort of feel like structurally, it makes more sense to have 1 describe block for the "handlerPath function" and then nested within THAT are 2 different it.each blocks for success and error. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to nest it in a describe block

@jasnoo jasnoo requested a review from namanaman February 22, 2024 16:39
Copy link
Contributor

@namanaman namanaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful

@jasnoo jasnoo merged commit 5d85ac9 into main Feb 22, 2024
1 check passed
@jasnoo jasnoo deleted the test-handler-resolver branch February 22, 2024 19:11
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.

2 participants