-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client tests #225
base: client-tests
Are you sure you want to change the base?
Client tests #225
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it subject to close #204 in favour of this PR?
@tshemsedinov Perhaps partially. Maybe it will be better if @leonpolak looks at whether everything is present, what he expected. I did not look at PR #204, but just corrected what interfered with the work of the test. |
Co-authored-by: Timur Shemsedinov <[email protected]>
test/client.js
Outdated
try { | ||
const resources = await wsApi.example.resources(); | ||
test.strictEqual(resources?.total, null); | ||
// console.log({resources}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final version before landing should not contain commented console.log's
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, do I need to remove all commented code too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just before landing, or you can add comment // not for landing
if you added something not related to this PR or commented something just to make this code works but if it should be subject to separate PR
Looks like redis can't be accessed in docker: |
You are right, I have forgotten to add optional support running API under a container with Redis. Ok, I will add a config for Redis. |
@tshemsedinov Do you have any other suggestions to improve or add some more tests? |
Tests are still failing https://github.com/metarhia/Example/pull/225/checks |
It's because the test.yml haven't any instance of Redis in the test environment. |
210cd9a
to
075a1bb
Compare
PR-URL: metarhia#246
PR-URL: metarhia#246
4c051b4
to
5de3b2b
Compare
b865f52
to
44364c7
Compare
44364c7
to
9a129ae
Compare
@leonpolak @tshemsedinov |
@leonpolak Did you talk about this error before? I caught it too now with node version 18.
|
Update client test