movies-javascript-bolt
movies-javascript-bolt copied to clipboard
GGP-460: testing with @neo4j-labs/temp-dbs
trafficstars
Proof of concept of using @neo4j-labs/temp-dbs for creating disposable databases for testing.
How to test:
- Make sure you have a Neo4j database running locally, you can use Neo4j Desktop for this. Make sure to select at least version 4
- Export the right credentials to your environment like:
export NEO4J_URI="bolt://localhost:7687"
export NEO4J_USER="neo4j"
export NEO4J_PASSWORD="123456"
export NEO4J_VERSION="4.2.1"
- Install nodejs dependencies
npm install - Run tests
npm run test
@fbiville the goal is to have an example of using tests using the semi-experimental https://github.com/neo4j-contrib/neo4j-temp-db - we can keep the "real" tests but have the other as an example for third parties to consider for their projects.