Initial implementation of Jest
🎯 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 I will pick this task if possible. Can you assign hacktoberfest as well as label
Hi @vibh1103 the project already have the topic hacktoberfest. Isn't necessary to add to each issue.
ohh ok please assing the task to me. let me give it a try
Assigned to you @vibh1103
I recommend to send small PR's to solve the points of this issue.
Removing the assignment after some weeks without a follow up