mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
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:
parent
b7c26f5a3e
commit
6efd2fa345
5
cypress.env.template.json
Normal file
5
cypress.env.template.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"NEO4J_URI": "bolt://localhost:7687",
|
||||
"NEO4J_USERNAME": "neo4j",
|
||||
"NEO4J_PASSWORD": "letmein"
|
||||
}
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user