Skip to content

Reapply "Replace chai and axios (#71)"#77

Merged
chgeo merged 29 commits intomainfrom
revert
Apr 14, 2026
Merged

Reapply "Replace chai and axios (#71)"#77
chgeo merged 29 commits intomainfrom
revert

Conversation

@chgeo
Copy link
Copy Markdown
Member

@chgeo chgeo commented Mar 26, 2026

This brings naxios etc back, reverting commit 45d153c.

Fixes:

  • validateStatus can be falsy → fix: validateStatus can be falsy #73
  • arraybuffer responses are not Buffers, fixed with 3a375d1, see cds-graphql/test/tests/queries/variables.test.js
  • axios.defaults.maxRedirects not supported, fixed with 6d60668, see cds-fiori/test/preview/routes.test.js
  • Absolute URLs in requests failed, fixed with f3031cf
  • containSubset too strict, fixed with d27e127, see cap/dev/test/capire/getting-started.test.js
  • OData batch responses, see cds-mtxs/test/extensibility/ft-mt-custom-auth/ft-custom-auth.test.js → remove test

Also support:

  • axios compat. that kicks in if axios is installed
  • latest chai-as-promised with b6d6dbf

Tests coverage

  • cap/dev tests (w/o axios)

@chgeo
Copy link
Copy Markdown
Member Author

chgeo commented Mar 26, 2026

@danjoa I had to revert the PR due to many test failures. Need to investigate the different error patterns, see above.

@chgeo chgeo force-pushed the revert branch 5 times, most recently from 8be35c8 to d924897 Compare April 8, 2026 12:33
@chgeo chgeo marked this pull request as ready for review April 9, 2026 07:37
Copy link
Copy Markdown
Contributor

@danjoa danjoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed again, added some jsdoc comments and looks good to me. 👍

@chgeo
Copy link
Copy Markdown
Member Author

chgeo commented Apr 14, 2026

cap/dev is green ✅

Let's merge this beast.

@chgeo chgeo merged commit 19329dc into main Apr 14, 2026
4 checks passed
@chgeo chgeo deleted the revert branch April 14, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants