-
Notifications
You must be signed in to change notification settings - Fork 1
feat: DB v2 test default db #94
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
base: master
Are you sure you want to change the base?
Conversation
b052530 to
63c1af7
Compare
59312da to
04800c7
Compare
# Conflicts: # src/v2/components/database/index.ts
This reverts commit f361e34.
04800c7 to
41783a5
Compare
| ); | ||
| assert.strictEqual( | ||
| instance.engineVersion, | ||
| '17.2', |
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.
Maybe we could export defaults and assert those values directly here like we did for example in redis tests?
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.
I don't like to use config for the thing I'm testing 🤔
@droguljic do you have an opinion on this?
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.
I wouldn't do as suggested, as it is not considered a good practice, and it can give false negatives. Just keep it as is.
tests/database/index.test.ts
Outdated
| after(() => automation.destroy(programArgs)); | ||
|
|
||
| describe('Default database', () => testDefaultDb(ctx)); | ||
| after(() => cleanupSnapshots(ctx)); |
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.
Could we move both of these inside one after hook?
This PR is the third one in order to resolve #70 and it will represent type tests and default db integration tests