Robert Schäfer
6f487e2687
Fix non-deterministic erros in testing
...
Without the `--runInBand` flag, jest will create a worker pool of child
processes and run the tests withing. No surprise, why the tests were
running completely non-deterministically! If we clear the database in
the middle of the tests we will end up with no records, or if we run the
factories in several tests we end up with many duplicate records.
FYI: @mattwr18 @appinteractive @tansaku @Kachulio1
2019-01-14 23:22:12 +01:00
Robert Schäfer
70b20302fe
Probably exposed #106
2019-01-14 23:00:21 +01:00
Robert Schäfer
d0b975e782
Getting strange non-deterministic errors
2019-01-14 20:54:11 +01:00
Robert Schäfer
6bbc76911a
Refactor test cases
2019-01-14 16:07:52 +01:00
Grzegorz Leoniec
fb885ddcda
Merge branch 'master' into 106_authorization
2019-01-13 15:42:21 +01:00
Grzegorz Leoniec
617a62a40c
Merge pull request #104 from DakshMiglani/master
...
fix #41 jwt strategy
2019-01-13 15:41:15 +01:00
dependabot[bot]
9d284da73e
Merge pull request #85 from Human-Connection/dependabot/npm_and_yarn/apollo-cache-inmemory-1.3.12
2019-01-12 21:09:49 +00:00
dependabot[bot]
53044c4cf6
Bump apollo-cache-inmemory from 1.3.11 to 1.3.12
...
Bumps [apollo-cache-inmemory](https://github.com/apollographql/apollo-client ) from 1.3.11 to 1.3.12.
- [Release notes](https://github.com/apollographql/apollo-client/releases )
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md )
- [Commits](https://github.com/apollographql/apollo-client/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-12 20:51:19 +00:00
dependabot[bot]
a27363632c
Merge pull request #110 from Human-Connection/dependabot/npm_and_yarn/eslint-plugin-jest-22.1.3
2019-01-12 20:48:39 +00:00
Daksh
ca38892322
remove password from query.
2019-01-10 21:49:01 +05:30
dependabot[bot]
da19dee1f2
Bump eslint-plugin-jest from 22.1.2 to 22.1.3
...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 22.1.2 to 22.1.3.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases )
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v22.1.2...v22.1.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-10 04:19:47 +00:00
Robert Schäfer
0893d3740e
Try to expose bug #106
...
It does not work as we have PERMISSIONS=disabled also in the server
we're trying to test.
2019-01-09 18:56:57 +01:00
Robert Schäfer
9262fbb44f
Start a test server only once.
...
This keeps our tests small. It is quite a headache though, because of an
issue with jest and with transpiling. For reasons that I don't understand
running `yarn run test:jest` sometimes complains about open handles.
I would love to hear how to make our build more reliable.
2019-01-09 14:49:35 +01:00
Daksh
fbdbabc382
Merge branch 'master' into master
2019-01-09 19:08:37 +05:30
Robert Schäfer
b2bad4fedb
Merge pull request #108 from Human-Connection/dont_run_tests_in_build_folder
...
Don't run tests in /dist folder
2019-01-09 14:35:29 +01:00
Robert Schäfer
13666df3e2
Don't run tests in /dist folder
...
If you ran `yarn run build` followed by `yarn run test:jest` it was
running the tests twice, because it matched the `/dist` folder to.
2019-01-09 13:50:59 +01:00
Grzegorz Leoniec
86c7b93386
Removed unneeded log
2019-01-09 13:14:18 +01:00
Grzegorz Leoniec
2571d82447
Disabled cypther logs and added DEBUG env var
2019-01-09 13:12:37 +01:00
dependabot[bot]
7798c9fafd
Merge pull request #107 from Human-Connection/dependabot/npm_and_yarn/neo4j-graphql-js-2.2.0
2019-01-09 08:42:08 +00:00
dependabot[bot]
1dd852ee9f
Bump neo4j-graphql-js from 2.1.1 to 2.2.0
...
Bumps [neo4j-graphql-js](https://github.com/neo4j-graphql/neo4j-graphql-js ) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/neo4j-graphql/neo4j-graphql-js/releases )
- [Changelog](https://github.com/neo4j-graphql/neo4j-graphql-js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/neo4j-graphql/neo4j-graphql-js/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-09 04:30:55 +00:00
Robert Schäfer
ae39c18980
Run all backend tests
...
I accidently left `describe.only` in the test suite. That usually runs
only one block of tests instead of all tests. My fault, sorry
2019-01-08 14:57:33 +01:00
Robert Schäfer
2156b08e8f
Run yarn run lint --fix
...
@DakshMiglani check the build server for any errors:
https://travis-ci.com/Human-Connection/Nitro-Backend/builds/96505757#L658
Here you can see the build was fine, only eslint complained. Eslint is a
quick fix 😉
2019-01-08 14:20:05 +01:00
Daksh
d0e18bf131
Merge branch 'master' into master
2019-01-07 23:12:15 +05:30
dependabot[bot]
a1b8d53e6e
Merge pull request #87 from Human-Connection/dependabot/npm_and_yarn/apollo-client-2.4.8
2019-01-07 16:20:09 +00:00
dependabot[bot]
b6511b9a03
Bump apollo-client from 2.4.7 to 2.4.8
...
Bumps [apollo-client](https://github.com/apollographql/apollo-client ) from 2.4.7 to 2.4.8.
- [Release notes](https://github.com/apollographql/apollo-client/releases )
- [Changelog](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md )
- [Commits](https://github.com/apollographql/apollo-client/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-07 16:06:35 +00:00
Robert Schäfer
a6c6dcbedf
Merge pull request #100 from aonomike/master
...
Update README.md
2019-01-07 17:00:53 +01:00
Robert Schäfer
1d7988e36f
Merge branch 'master' into master
2019-01-07 17:00:33 +01:00
Daksh
016119e768
fix variableName from id to userId
2019-01-07 13:00:19 +05:30
Daksh Miglani
5fd5795f39
fix jwt strategy
2019-01-07 12:48:47 +05:30
Mike Aono
486e01ddce
Update README.md
2019-01-05 18:57:24 +03:00
Robert Schäfer
3d3b3c8c24
Merge pull request #93 from Gerald1614/500_error_on_login
...
FIX #49 capture error in readable format with try and catch
2019-01-04 00:35:23 +01:00
Robert Schäfer
fd206c2b1f
Merge remote-tracking branch 'origin/master' into 500_error_on_login
2019-01-04 00:25:22 +01:00
Robert Schäfer
407e5bfdeb
Merge pull request #88 from Human-Connection/49_fix_no_user_with_that_email
...
Login: Friendly error message if email is incorrect
2019-01-04 00:22:33 +01:00
Robert Schäfer
96d9bb49bc
Revert "add afterAll to make CI pass"
...
This reverts commit 3a9cb31e1f6039aecd428b2fc250b4b88a18ccfa.
See https://github.com/Human-Connection/Nitro-Backend/pull/88#discussion_r245157595
2019-01-03 23:55:05 +01:00
kachulio1
e1070e15f2
add done on async test
2019-01-03 22:03:23 +03:00
kachulio1
3a9cb31e1f
add afterAll to make CI pass
2019-01-03 20:40:28 +03:00
Grzegorz Leoniec
a7206c6e07
Merge branch 'master' into 500_error_on_login
2019-01-03 17:30:56 +01:00
Grzegorz Leoniec
626d1ada48
Merge branch 'master' into 49_fix_no_user_with_that_email
2019-01-03 17:27:42 +01:00
Robert Schäfer
d6622d0825
Revert "Setup neo4j service on Travis CI"
...
This reverts commit 9fdee4480fea582a01e40687cffff404b749a8f1.
@mattwr18 this was a rash decision, neo4j on Travis is not required if
we run all the tests in docker. When I run the tests in docker on my
machine, it terminates as expected. How is the situation on your
machine?
2019-01-03 13:53:44 +01:00
Robert Schäfer
9fdee4480f
Setup neo4j service on Travis CI
2019-01-03 11:50:20 +01:00
dependabot[bot]
3452db3468
Merge pull request #98 from Human-Connection/dependabot/npm_and_yarn/neo4j-graphql-js-2.1.1
2019-01-03 07:19:18 +00:00
dependabot[bot]
7f567be64f
Bump neo4j-graphql-js from 2.0.1 to 2.1.1
...
Bumps [neo4j-graphql-js](https://github.com/neo4j-graphql/neo4j-graphql-js ) from 2.0.1 to 2.1.1.
- [Release notes](https://github.com/neo4j-graphql/neo4j-graphql-js/releases )
- [Changelog](https://github.com/neo4j-graphql/neo4j-graphql-js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/neo4j-graphql/neo4j-graphql-js/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-03 06:55:44 +00:00
dependabot[bot]
6c93127e6e
Merge pull request #97 from Human-Connection/dependabot/npm_and_yarn/eslint-5.11.1
2019-01-03 06:50:48 +00:00
dependabot[bot]
363105281b
Bump eslint from 5.10.0 to 5.11.1
...
Bumps [eslint](https://github.com/eslint/eslint ) from 5.10.0 to 5.11.1.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v5.10.0...v5.11.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-03 04:33:35 +00:00
Gerald Michelant
4f4b6e5469
changed method to inject variable to login
2019-01-02 14:33:35 -05:00
Gerald Michelant
da1860bcd0
rewritting of login method
2019-01-02 14:33:35 -05:00
Gerald Michelant
57d9088c6c
throw new AuthenticationError on password error
2019-01-02 14:33:35 -05:00
Gerald Michelant
0b623cf083
capture error in readable format with try and catch
2019-01-02 14:33:35 -05:00
dependabot[bot]
1bd5b2a8d8
Bump @babel/preset-env from 7.2.0 to 7.2.3
...
Bumps [@babel/preset-env](https://github.com/babel/babel ) from 7.2.0 to 7.2.3.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.2.0...v7.2.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-02 14:32:49 -05:00
dependabot[bot]
e9ec677527
Bump @babel/cli from 7.2.0 to 7.2.3
...
Bumps [@babel/cli](https://github.com/babel/babel ) from 7.2.0 to 7.2.3.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.2.0...v7.2.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-02 14:32:49 -05:00