logaretm / villus

🏎 A tiny and fast GraphQL client for Vue.js
https://villus.dev
MIT License
790 stars 31 forks source link

opContext.credentials in fetch object in the batch plugin #167

Closed DaLukasDev closed 2 years ago

DaLukasDev commented 2 years ago

This adds the ability to use opContext.credentials in the batch plugin.

codecov-commenter commented 2 years ago

Codecov Report

Merging #167 (65dbdc4) into main (1910a14) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #167   +/-   ##
=======================================
  Coverage   94.65%   94.66%           
=======================================
  Files          26       26           
  Lines         561      562    +1     
  Branches      112      112           
=======================================
+ Hits          531      532    +1     
  Misses         30       30           
Impacted Files Coverage Δ
packages/batch/src/index.ts 75.86% <100.00%> (+0.42%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us.

DaLukasDev commented 2 years ago

Something like this? I could try to write a test but it would be a first for me writing a test with jest :sweat_smile: