Fix: Cypress Neo4j authentication without Docker

- It's a bit of a pain to need to run Docker just to run the cypress
tests, and while it would be nice to use the same .env, we have an issue
with relative paths, dotenv, and cypress playing nice together.
This commit is contained in:
mattwr18 2020-01-14 13:15:49 +01:00
parent b7c26f5a3e
commit 6efd2fa345
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"NEO4J_URI": "bolt://localhost:7687",
"NEO4J_USERNAME": "neo4j",
"NEO4J_PASSWORD": "letmein"
}

View File

@ -16,6 +16,12 @@ First, you have to tell cypress how to connect to your local neo4j database
among other things. You can copy our template configuration and change the new
file according to your needs.
Make sure you are at the root level of the project. Then:
```bash
# in the top level folder Human-Connection/
$ cp cypress.env.template.json cypress.env.json
```
To start the services that are required for cypress testing, run:
```bash