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

chore: Migrate tests to Vitest #753

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

chore: Migrate tests to Vitest #753

wants to merge 6 commits into from

Conversation

stephenh
Copy link
Collaborator

@stephenh stephenh commented Aug 13, 2023

Jest

Test Suites: 74 passed, 74 total
Tests:       4 skipped, 823 passed, 827 total
Snapshots:   18 passed, 18 total
Time:        18.599 s, estimated 20 s
Ran all test suites.

________________________________________________________
Executed in   19.45 secs    fish           external
   usr time   21.57 secs  266.00 micros   21.57 secs
   sys time    1.24 secs   84.00 micros    1.24 secs

Vitest

  Snapshots  13 failed
 Test Files  49 failed | 25 passed (74)
      Tests  85 failed | 548 passed | 4 skipped (637)
   Start at  21:11:51
   Duration  5.11s (transform 413ms, setup 0ms, collect 1.61s, tests 2.40s, environment 0ms, prepare 37ms)


________________________________________________________
Executed in    5.81 secs    fish           external
   usr time    5.58 secs  280.00 micros    5.58 secs
   sys time    0.43 secs   83.00 micros    0.43 secs

@@ -533,4 +533,19 @@ export const userMeta: EntityMetadata<User> = {
(User as any).metadata = userMeta;

export const allMetadata = [authorMeta, authorStatMeta, bookMeta, bookAdvanceMeta, bookReviewMeta, commentMeta, criticMeta, criticColumnMeta, imageMeta, largePublisherMeta, publisherMeta, publisherGroupMeta, smallPublisherMeta, tagMeta, userMeta];
configureMetadata(allMetadata);

export function ensureConfigured() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be necessary, but was just trying it.

@stephenh stephenh force-pushed the vitest branch 4 times, most recently from b50130c to b9f19c4 Compare September 1, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant