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

chore: Set up unit testing #22

Merged
merged 1 commit into from
Jul 7, 2024
Merged

chore: Set up unit testing #22

merged 1 commit into from
Jul 7, 2024

Conversation

meyfa
Copy link
Member

@meyfa meyfa commented Jul 7, 2024

Closes #19. Mocha is used as the testing framework since the Node.js test runner doesn't have glob support in Node.js 20 and hence cannot be used with *.ts file extensions (without much effort). To make TypeScript work, including source mapping to ensure proper line numbers in error messages, tsx is used (ts-node seems to be no longer maintained).

This patch only adds very minimal tests, just ensuring the setup works.

Closes #19. Mocha is used as the testing framework since the Node.js
test runner doesn't have glob support in Node.js 20 and hence cannot be
used with `*.ts` file extensions (without much effort). To make
TypeScript work, including source mapping to ensure proper line numbers
in error messages, tsx is used (ts-node seems to be no longer
maintained).

This patch only adds very minimal tests, just ensuring the setup works.
@meyfa meyfa requested a review from lusu007 July 7, 2024 15:53
@lusu007 lusu007 merged commit 2a6bd6f into main Jul 7, 2024
3 checks passed
@lusu007 lusu007 deleted the chore/testing branch July 7, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up unit testing again
2 participants