uprm-inso4117-2023-2024-s2 / semester-project-study-pet

semester-project-study-pet created by GitHub Classroom
1 stars 3 forks source link

Difficulty adjustment & testing #321

Closed Elielh17 closed 5 months ago

Elielh17 commented 5 months ago

Conducted integration testing on the difficulty adjustment feature within the minigames to verify its interaction with other game components and future integration with local storage. The difficulty of the minigames will be changed using the pet data that will be stored on the local storage, when the issue #277 is completed. Some code refactoring of the Eating minigame file was done, to make it follow the same structure as the other minigames.

PinkSylvie commented 5 months ago

How do I run this so I can see the tests you implemented?

Elielh17 commented 5 months ago

How do I run this so I can see the tests you implemented?

With the command: npm run test-jest

PinkSylvie commented 5 months ago

image Got this error when running it which is new, but also got a similar error I had seen when running other tests which seems to be an issue with my laptop and not the tests themselves: image @irsaris do you get this error?

Elielh17 commented 5 months ago

image Got this error when running it which is new, but also got a similar error I had seen when running other tests which seems to be an issue with my laptop and not the tests themselves: image @irsaris do you get this error?

When the command is run, all the tests that are created are run, if you want to see the tests created for this pull request, search for the tests BathDifficultyTest.js, EatingminigameTest.js, MinigameTest.js.

image

PinkSylvie commented 5 months ago

They don't pass on my side which could be an issue with my laptop

irsaris commented 5 months ago

image Got this error when running it which is new, but also got a similar error I had seen when running other tests which seems to be an issue with my laptop and not the tests themselves: image @irsaris do you get this error?

sorry for the late reply, yes