-
Notifications
You must be signed in to change notification settings - Fork 1
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
Anti-pattern: (JS-0323) Fix #2039
base: main
Are you sure you want to change the base?
Anti-pattern: (JS-0323) Fix #2039
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davido-noowin, please correct your package.json
files.
- Remove the dependencies installed in the root
package.json
and install each one in its correspondingbackend
orfrontend
directory. - Remove this part from package.json
"leadminer": "file:.."
- Run
npm run prettier:fix
in frontend to fix formatting andnpm run lint:fix
to fix linting
You’re still facing issues with package.json files. Here’s a quick fix:
This will validate your unit tests. If everything works fine, push your changes. |
This PR resolves #2030. Originally, leadminer/backend/src/utils/helpers/validation.ts had code that could not interact with the type change from
any
tounknown
, but changes have been made. There is another if statement to check for thestring
type, as the original function only contained a check for typestring[].
A unit test file has been made for this function calledvalidation.test.ts