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

Add Jest Framework, JSLint, and Testing Workflow #2345

Merged
merged 3 commits into from
Jun 8, 2024

Conversation

PTheocharis
Copy link
Contributor

Description:
This pull request focuses on improving testing and code quality.

Changes
-New package.json file to add Jest and JSLint

-Added Jest Framework: Implemented Jest using npm. Jest is now configured to run tests located in the "tests" directory.

-Added JSLint as it was suggested as a development dependency.

-Added a GitHub Actions workflow file (js-lint-test.yml) to automate the process of running JSLint and Jest tests. This workflow showcases all the JSLint remarks and the testing results

Added 4 Initial Unit Tests for camelize function and events function (TRIGGER Chapter) in the core.js file. These tests are written using Jest and utilize mocking techniques, because I didn't want to export the extension object and make changes in the core.js

Created a jest.config.js file to improve the process.

Additional Notes:
All five tests have been successfully executed, confirming the reliability and effectiveness of the Jest in the core.js file.
I tried to keep up good quality standards, I would be happy if yoy help me with any needed improvements as I am still a beginner :)

@ImprovedTube ImprovedTube merged commit d18af94 into code-charity:master Jun 8, 2024
1 check passed
@ImprovedTube
Copy link
Member

thank you!

(didnt review yet.)


BTW can we reduce the number of files in the root directory? (cosmetics)

@ImprovedTube
Copy link
Member

side-effect: "used by: 899 people"-box (not making sense for this project)

@PTheocharis
Copy link
Contributor Author

Hello 👋 Is there any update on the reviewing part?

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.

None yet

2 participants