-
Notifications
You must be signed in to change notification settings - Fork 6
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
test: adopt @cap-js/sqlite #157
Conversation
const response = await POST('/graphql', { query }) | ||
expect(response.data).toEqual({ data, errors }) | ||
expect(response.data).toEqual({ data }) |
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.
👍
@@ -2,6 +2,9 @@ | |||
"dependencies": { | |||
"@cap-js/graphql": "*" | |||
}, | |||
"devDependencies": { | |||
"@cap-js/sqlite": "*" |
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.
Are these added for the plugin detection ?
If that is the reason it would be better to run the test with CDS_CONFIG
to allow for testing with not just @cap-js/sqlite
.
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 want to introduce those internal flags also for open source modules.
In the meanwhile, I'd hope that there's no need anymore to switch back to the old implementation :)
{ | ||
name: 'Edgar Allen Poe', | ||
books: { | ||
totalCount: null, // REVISIT: expected 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.
the totalCount is probably being returned as [email protected]
. As defined here
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'll add a BLI for us. Seems very "odata'ish" :)
REVISIT:
→ The functions are implemented after OData v4.01 standard which specify them as case sensitive.
→ f74062f it's supported by @cap-js/sqlite