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

Use Node.js test runner #44

Merged
merged 30 commits into from
Nov 29, 2023
Merged

Use Node.js test runner #44

merged 30 commits into from
Nov 29, 2023

Conversation

nickrttn
Copy link
Contributor

@nickrttn nickrttn commented Oct 31, 2023

Took an hour and had some fun converting the test suite here to node:test. The only one I'm having trouble with (mocking the pagerduty import in particular) is triggerPager.test.ts. @aduh95 think you could take a look at that?

@nickrttn nickrttn requested review from aduh95 and kvz October 31, 2023 14:18
@kvz
Copy link
Member

kvz commented Nov 2, 2023

the passes make me think you figured the mocking part out is that correct? If so i'm open to merging the node test runner once the conflict has been resolved 👌

@nickrttn
Copy link
Contributor Author

nickrttn commented Nov 2, 2023

I did not figure it out yet, the tests for triggerPager are just disabled at the moment.

@nickrttn
Copy link
Contributor Author

@aduh95 do you have time next week to pair on this? Tuesday would be most convenient on my side, any time is good, does that work for you?

@aduh95
Copy link
Contributor

aduh95 commented Nov 22, 2023

Sure let's do tuesday 10am?

@nickrttn
Copy link
Contributor Author

Ok, sounds good 👍

# Conflicts:
#	.eslintrc.js
#	package.json
#	packages/prd/src/prd.test.ts
#	packages/prettier-bytes/src/prettierBytes.ts
#	packages/trigger-pager/src/triggerPager.test.ts
#	tsconfig.json
#	yarn.lock
# Conflicts:
#	.github/workflows/ci-monolib.yml
#	package.json
#	packages/enrich-tweet/src/enrichTweet.test.ts
#	tsconfig.json
#	yarn.lock
@nickrttn nickrttn requested a review from aduh95 November 28, 2023 14:43
@nickrttn nickrttn requested a review from aduh95 November 28, 2023 15:20
@nickrttn nickrttn requested a review from aduh95 November 29, 2023 10:05
@nickrttn nickrttn merged commit 752e76d into main Nov 29, 2023
1 check passed
@nickrttn nickrttn deleted the node-test-runner branch November 29, 2023 10:32
@kvz
Copy link
Member

kvz commented Nov 30, 2023

Cool, thanks for cleaning up this repo both!!

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.

3 participants