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

[DRAFT] Add a testing utility for Evolu that uses in-memory SQLite #481

Closed
wants to merge 10 commits into from

Conversation

samwightt
Copy link
Contributor

@samwightt samwightt commented Sep 9, 2024

Update:

Looks like the build is failing for react-native because better-sqlite3 isn't supported on it. Let me pull this all out into a separate package for testing. Something like @evolu/test or something.

Key features this adds:

  • You can now making testing Evolu databases that are in-memory. They're really fast and just work.
  • You can 'fork' a database, which copies it. Changes to the forked database don't affect the parent database, changes to the parent database after forking don't affect the child database. This allows the user to set up the database once for all tests (making things faster) and then fork it for each individual test.

Copy link

changeset-bot bot commented Sep 9, 2024

⚠️ No Changeset found

Latest commit: 6409ed6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Sep 9, 2024

@samwightt is attempting to deploy a commit to the evolu Team on Vercel.

A member of the Team first needs to authorize it.

@steida
Copy link
Contributor

steida commented Sep 10, 2024

It looks promising, thank you! I will review it ASAP (immediately after the new sync is completed)

@samwightt samwightt marked this pull request as ready for review September 10, 2024 19:49
@samwightt samwightt marked this pull request as draft September 11, 2024 17:14
@samwightt samwightt closed this by deleting the head repository Oct 2, 2024
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.

2 participants