This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make #252 less painful, mark not-isolated tests
With this commit you can run ``` npm run test-isolated ``` over and over again and the tests should pass. This does not fix the issue mentioned above but it makes it less painful. At least I can make my changes and run all tests exluding those that are not isolated. When I'm done with my changes I can re-import the data and run all the tests, even those that are not isolated. This is what I did to get all the tests passing on my machine: ``` sudo rm /var/lib/neo4j/data/databases/* -r sudo cp -rp ~/Downloads/temp/neo4j-graphql-js/recommendations.db/ /var/lib/neo4j/data/databases/graph.db sudo systemctl restart neo4j.service ``` Very annoying. @johnymontana @michaeldgraham do you know if there is a single command that brings the database into a state where it was *before* running the test case? Something that we could use in a `beforeEach` or `afterEach`? See: #252 (comment)
- Loading branch information
1 parent
f5af6d5
commit 467cf17
Showing
3 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.