Skip to content

Commit

Permalink
feat: add unit tests for utils/search functions
Browse files Browse the repository at this point in the history
- Added `vitest` to the project
- Implemented unit tests for the functions `flattenObject`,
  `unflattenObject`, `parseWith`, `stringifyWith` and
  `isEncodedJSONArrayParam`.

Closes #375
  • Loading branch information
murilx committed Dec 18, 2024
1 parent e40b95d commit 5495a87
Show file tree
Hide file tree
Showing 4 changed files with 494 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"test": "vitest",
"coverage": "vitest run --coverage",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"lint-staged": "eslint --max-warnings=0 --ext .ts,.tsx,.js,.jsx src",
Expand Down Expand Up @@ -97,6 +99,7 @@
"prettier-plugin-tailwindcss": "^0.6.6",
"storybook": "^8.3.0",
"tailwindcss": "^3.4.11",
"typescript": "^5.6.2"
"typescript": "^5.6.2",
"vitest": "^2.1.8"
}
}
Loading

0 comments on commit 5495a87

Please sign in to comment.