Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: src/screens/UserPortal/Volunteer/Actions from Jest to Vitest #2619

Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d8fb536
migrate jest to vitetst
MayankJha014 Dec 7, 2024
a7b5464
migrate jest to vitetst
MayankJha014 Dec 7, 2024
43583dd
migrate jest to vitetst ignore
MayankJha014 Dec 7, 2024
eddbe8d
migrate jest to vitetst eslint fix
MayankJha014 Dec 7, 2024
1ed1b43
ignore action.tsx
MayankJha014 Dec 7, 2024
86d5ad9
migrate jest to vitetst vite config change
MayankJha014 Dec 8, 2024
4928fba
Merge branch 'develop-postgres' into action-jest-to-vitest
varshith257 Dec 8, 2024
66be145
coderabbitai asked changes
MayankJha014 Dec 9, 2024
e1bf215
Merge branch 'develop-postgres' into action-jest-to-vitest
MayankJha014 Dec 9, 2024
4a0f92b
Merge branch 'develop-postgres' of https://github.com/PalisadoesFound…
MayankJha014 Dec 9, 2024
bcd3ad1
revert vitest.config.ts
MayankJha014 Dec 10, 2024
a63161d
Merge branch 'action-jest-to-vitest' of https://github.com/MayankJha0…
MayankJha014 Dec 10, 2024
44aa26d
fixing merge issue
MayankJha014 Dec 11, 2024
c3a1944
tsdoc issue fix
MayankJha014 Dec 11, 2024
13e123e
Enhance the useNavigate mock implementation.
MayankJha014 Dec 12, 2024
3c7a3ba
trying to inc code range
Mayankpulse333 Dec 14, 2024
bbadebf
test failing fix
Mayankpulse333 Dec 14, 2024
0d22e82
test fix
Mayankpulse333 Dec 14, 2024
8613cd0
test fail fix trying
Mayankpulse333 Dec 14, 2024
6d696b1
fix organization issue ts
Mayankpulse333 Dec 14, 2024
8fa34f7
action.spec waitfor issue fix
Mayankpulse333 Dec 14, 2024
dc456d3
excluded uncessary file
Mayankpulse333 Dec 14, 2024
356126b
fix test failed issue
Mayankpulse333 Dec 14, 2024
6fa2e0a
yearlyEvent calender coverage increase
Mayankpulse333 Dec 14, 2024
e390d5e
Merge branch 'develop-postgres' into action-jest-to-vitest
MayankJha014 Dec 14, 2024
66fac2f
inc code cov
Mayankpulse333 Dec 14, 2024
765a8aa
Merge branch 'develop-postgres' of https://github.com/PalisadoesFound…
Mayankpulse333 Dec 14, 2024
45b11ad
Merge remote-tracking branch 'origin/action-jest-to-vitest' into acti…
Mayankpulse333 Dec 14, 2024
ad8ddbc
setting revert back
Mayankpulse333 Dec 15, 2024
926168e
setting revert
Mayankpulse333 Dec 15, 2024
09d8a0e
organisation covergae
MayankJha014 Dec 15, 2024
e5b8a70
unwanted file
MayankJha014 Dec 15, 2024
cb8ea25
ignoring covergae for setup.ts
MayankJha014 Dec 15, 2024
9b46de3
ignoring setup.ts
MayankJha014 Dec 15, 2024
dc326d2
revert back changes
MayankJha014 Dec 15, 2024
869f244
removing ignore comment
MayankJha014 Dec 15, 2024
320dd6f
schema fix
MayankJha014 Dec 16, 2024
89c6ab3
schema fix
MayankJha014 Dec 16, 2024
117e9e3
test to spec
MayankJha014 Dec 16, 2024
4ab2449
Merge branch 'develop-postgres' into action-jest-to-vitest
MayankJha014 Dec 16, 2024
5233f62
revert test to spec
MayankJha014 Dec 16, 2024
6848acc
Merge branch 'develop-postgres' of https://github.com/PalisadoesFound…
MayankJha014 Dec 16, 2024
8714a6c
Merge branch 'action-jest-to-vitest' of github.com:MayankJha014/talaw…
MayankJha014 Dec 16, 2024
07b841b
revert pull req change
MayankJha014 Dec 18, 2024
3797b64
codeai to resole
MayankJha014 Dec 18, 2024
24bfa78
codeai to resole
MayankJha014 Dec 18, 2024
93b4488
removing spec file from jest
MayankJha014 Dec 19, 2024
caa8c44
Merge branch 'develop-postgres' of https://github.com/PalisadoesFound…
MayankJha014 Dec 19, 2024
b87bf95
Merge branch 'develop-postgres' into action-jest-to-vitest
MayankJha014 Dec 21, 2024
47517c7
code coverage fix
MayankJha014 Dec 21, 2024
6c4462f
code coverage fix
MayankJha014 Dec 21, 2024
3587d54
code coverage fix
MayankJha014 Dec 21, 2024
ccab13b
code patch inc
MayankJha014 Dec 21, 2024
c0c4971
code patch inc
MayankJha014 Dec 21, 2024
cbc79f4
inc path coverage for eventstatiscs
MayankJha014 Dec 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check warning on line 1 in .eslintrc.json

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

File ignored by default.
"env": {
"browser": true,
"node": true,
Expand Down Expand Up @@ -129,7 +129,6 @@
"react/no-this-in-sfc": "error",

"jest/expect-expect": 0,

"react/no-unstable-nested-components": ["error", { "allowAsProps": true }],
"react/function-component-definition": [
0,
Expand Down
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default {
'!**/index.{js,ts}',
'!**/*.d.ts',
'!src/test/**',
'!vitest.config.ts',],
'!vitest.config.ts',
],
// setupFiles: ['react-app-polyfill/jsdom'],
setupFiles: ['whatwg-fetch'],
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
Expand Down Expand Up @@ -66,6 +67,7 @@ export default {
'src/components/AddOn/support/services/Render.helper.ts',
'src/components/SecuredRoute/SecuredRoute.tsx',
'src/reportWebVitals.ts',
'src/screens/UserPortal/Volunteer/Actions/Actions.test.tsx',
],
coverageThreshold: {
global: {
Expand All @@ -77,6 +79,7 @@ export default {
'<rootDir>/node_modules/',
'<rootDir>/build/',
'<rootDir>/public/',
'<rootDir>/src/screens/UserPortal/Volunteer/Actions/Actions.test.tsx',
],
coverageDirectory: './coverage/jest',
coverageReporters: ['text', 'html', 'text-summary', 'lcov'],
Expand Down
220 changes: 220 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.5.0",
"@vitest/coverage-istanbul": "^2.1.5",
"@vitest/eslint-plugin": "^1.1.14",
"babel-jest": "^29.7.0",
"cross-env": "^7.0.3",
"eslint": "^8.49.0",
Expand All @@ -145,6 +146,7 @@
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-tsdoc": "^0.3.0",
"eslint-plugin-vitest": "^0.5.4",
"husky": "^9.1.6",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.4.5",
Expand Down
Loading
Loading