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

[Feature Request] Add support for temp/test dbs with @neo4j-labs/temp-dbs #88

Closed
AndySakov opened this issue Jan 12, 2024 · 1 comment
Closed

Comments

@AndySakov
Copy link
Contributor

Testing with neo4j as we all know leaves much to be desired but it would be nice if we could spawn test dbs so that integration tests that include the database would be possible. For reference, this lib makes it possible already but the design choices made by the devs of the lib make it hard to integrate the lib with neogma without reaching into neogma source and tweaking some things.

AndySakov added a commit to AndySakov/neogma that referenced this issue Jan 12, 2024
themetalfleece added a commit that referenced this issue Jan 15, 2024
Added util functions to manage temp databases (create and delete) and
integrated them as methods on the `Neogma` class.

- Copied over the functions from the
[@neo4j-labs/temp-dbs](https://github.com/neo4j-contrib/neo4j-temp-db)
repo and ported them to typescript.
- Integrated the functions into the `Neogma` class and removed the
`driver.close()` calls in the functions in favor of the global driver
manager.
- Added tests to make sure the intended behaviour was successfully
implemented.

---------

Co-authored-by: Jason Athanasoglou <[email protected]>
@themetalfleece
Copy link
Owner

Thanks for your contribution! Released at v1.13.0

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

No branches or pull requests

2 participants