hackforla / lucky-parking

Visualization of parking data to assist in understanding of the effects of parking policies on a neighborhood by neighborhood basis in the City of Los Angeles
https://www.hackforla.org/projects/lucky-parking.html
34 stars 60 forks source link

Fix test script #555

Closed glenflorendo closed 10 months ago

glenflorendo commented 11 months ago

User Story

As a developer, I want to run tests on my code changes to ensure that I don't introduce bugs or any regression.

Description

Run pnpm test at the project root, and you will see the following error:

ts-jest[ts-jest-transformer] (WARN) Got a unknown file type to compile (file: /lucky-parking/packages/website/src/entities/branding/ui/brandmark.svg). To fix this, in your Jest config change the `transform` key which value is `ts-jest` so that it does not match this kind of files anymore.
 FAIL  packages/website/src/widgets/header/header.test.tsx
  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

You will need to use SVGR and probably vite-plugin-svgr.

Acceptance Criteria

Design References

No response

Technical References

Additional Information

No response

glenflorendo commented 11 months ago

@christianjro I underestimated the effort needed for this ticket. Also, the technical details I've included in this ticket seem to be irrelevant to the issue at hand.

I will take over this ticket. Please focus on #556. Thank you!