libresign icon indicating copy to clipboard operation
libresign copied to clipboard

Initial implementation of Jest

Open vitormattos opened this issue 7 months ago • 5 comments

🎯 Goal

Set up Jest and implement the first unit test covering a Pinia store. This will kickstart frontend test coverage and help future contributions.

📋 Tasks

  • [ ] Add Jest and Vue testing dependencies (see below)
  • [ ] Create a minimal jest.config.js
  • [ ] Create a tests/unit/ folder
  • [ ] Write a unit test for a simple Pinia store, such as sidebar.js
  • [ ] Ensure tests run successfully with npx jest
  • [ ] Implement GitHub Action to run tests

⚙️ Required dependencies

npm install --save-dev jest @vue/test-utils vue-jest @babel/preset-env babel-jest

Add jest.config.js, look the references repositories.

💡 Tips

  • Check first the CONTRIBUTING.md file of this repository
  • Make separated commits with small steps preventing big commits. This will make more easy to do the code review.
  • Open the PR when you start to work and not at the end of your work. By this way will be possible give feedbacks and interact with you.
  • Comment here if you have doubts.

🧭 References

vitormattos avatar May 28 '25 15:05 vitormattos

@vitormattos I will pick this task if possible. Can you assign hacktoberfest as well as label

vibh1103 avatar Oct 07 '25 21:10 vibh1103

Hi @vibh1103 the project already have the topic hacktoberfest. Isn't necessary to add to each issue.

vitormattos avatar Oct 07 '25 23:10 vitormattos

ohh ok please assing the task to me. let me give it a try

vibh1103 avatar Oct 13 '25 06:10 vibh1103

Assigned to you @vibh1103

I recommend to send small PR's to solve the points of this issue.

vitormattos avatar Oct 13 '25 16:10 vitormattos

Removing the assignment after some weeks without a follow up

vitormattos avatar Oct 28 '25 22:10 vitormattos