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/add typescript #5

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Refactor/add typescript #5

merged 4 commits into from
Oct 1, 2024

Conversation

Jmsa
Copy link
Owner

@Jmsa Jmsa commented Sep 27, 2024

The first pass at the reporter (v1) was a quick one - getting the rough functionality in place that I knew had worked in previous iterations but starting from scratch.

With that behavior locked down, and the plan to add additional reporters for other test runners and frameworks, it made sense to do a basic typescript conversation and to abstract the shared "detection" logic.

With that in mind these changes:

  • bring in various TS packages and configuration updates
  • port the reporter source and specs over to TS
  • pull the detection logic out of the reporter
  • and update the package structure to include the new detection file

Note: these changes aren't trying to lean hard into typing all-the-things. We might get there some day but for now basic types for reporters and detection is all we really want.

Initial setup to get TS working - no changes to the source or deployed package yet
The detection tasks themselves are framework agnostic and since we plan to add a reporter for vitest opting to pull them out now makes sense.
Moving the detection and reporter specs into the jest config should make things simpler down the line as we add more reporters and don't want to add a ton of individual test tasks.
@Jmsa Jmsa self-assigned this Sep 30, 2024
@Jmsa Jmsa marked this pull request as ready for review September 30, 2024 23:41
@Jmsa Jmsa removed the wip label Oct 1, 2024
@Jmsa Jmsa merged commit b37a9ab into main Oct 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant