Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Merge requests
!20
Resolve
MIN-57
"Feature/ connect drug search query"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
MIN-57
"Feature/ connect drug search query"
feature/MIN-57-connect-drug-search-query
into
development
Overview
12
Commits
12
Pipelines
16
Changes
31
Merged
Tadeusz Miesiąc
requested to merge
feature/MIN-57-connect-drug-search-query
into
development
1 year ago
Overview
12
Commits
12
Pipelines
16
Changes
31
Expand
Description
Introduced fetching for drugs query
Things done
fetching
saving to redux store under 'drugs'
initialised integrational testing for redux
introduced axios mock library
introduced utility functions for mocking axios
introduced utility library for zod fixtures
Main idea behind testing:
Atm I see two cases for testing redux store and the logic inside
testing async calls and thunks to make sure that validation of the data is there
testing asserting data to the store and manipulating it. Atm it's not complex -> but It will
Pay attention for:
missing unit test for rest of the functions
Already done
utility function for reseting function store should be moved to abstraction
Already done
store has to be reseted before each test because it's not a mock function -> that's why utility function was created
Edited
1 year ago
by
Tadeusz Miesiąc
0
0
Merge request reports
Loading