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

feat: Running tests for a specific day (przeprogramowani#40) #43

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

artur1989
Copy link

Changes:

  • Added the option to run tests for a particular day. You can use a date like "YYYY-MM-DD", a number from 1 to 24, or run all tests if no specific argument is given.
  • Removed "test:all" script

Changes:
* Added the option to run tests for a particular day. You can use a date like "YYYY-MM-DD", a number from 1 to 24, or run all tests if no specific argument is given.
* Removed "test:all" script
Changes:
* Updated the search logic when only a day is provided. Now, it looks for the latest folder with the date closest to the current one and matching the given day. For example, if we run npm test 6, and there are folders with dates 2023-12-06 and 2024-12-06, while the current date is 2024-12-24, it will select the folder with the date 2024-12-06. This change is made to support future editions of Advent of Frontend.
artur1989 and others added 4 commits December 25, 2023 23:22
Changes:
* Moved validation functions isValidDate and isNumeric to the utilities module
* Changed file extension from .cjs to .mjs due to ECMAScript modules usage
* The getTestFilePath function, which returns the full path to the test file is public
* Refactored function names
Changes:
* Change the command from "npm run test:all" to "npm run test"
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