Vue Test Actions
Unit testing Vuex actions with Jest mocks.
? Install
or
Usage
⚙️ Params
Params | Type | Default | Description |
---|---|---|---|
action | Function | - | Action function |
expected commits | Array | [] |
Array of commit expectation |
expected dispatchs | Array | [] |
Array of dispatchs expectation |
payload | Any | undefined |
Parameter send to action function |
store | Object | { state: {}, getter: {} } |
Object for mock store data such as state or getter |
? Example
Contributing
- Fork this repository.
- Create new branch with feature name.
- Create your feature.
- Commit and set commit message with feature name.
- Push your code to your fork repository.
- Create pull request. ?
⭐️ Support
If you like this project, You can support me with starring ⭐ this repository.
License
[MIT]