Thibaut SEVERAC
Thibaut SEVERAC
i think to is a good idea, it's easier and faster to look at a number rather than a big sentence with lot of commits etc. Or you can make...
work with ST3 on chrome 46.0.2490.86 m
Hum, for the moment, I've a workaround for my problem ( checking all the records from nock, and manually re-do 302 request, without following the redirection, and doing a request...
Ok, so some tests ( It's my first time with TAP) ```js test('test 302 redirections', t => { const exampleText = 'example' const server = http.createServer((request, response) => { switch...
To try, I put a breakpoint here : https://github.com/nock/nock/blob/beta/lib/recorder.js#L324 And it's called once for got and axios, but twice for request . By debugging, I found axios use [follow-redirects](https://github.com/follow-redirects) And...
After some tests, It seems, we can record the two call here : https://github.com/nock/nock/blob/beta/lib/common.js#L97 I change it to : ``` module.request = function(options, callback) { // debug('request options:', options); return...
@gr2m doesn't know how to do it with your tests ... But in fact, it's not really difficult : - use axios - create a server that redirect 302 to...
@mastermatt oh ok ... So, I know axios use the library `follow-redirects` ( that, I imagine, will follow redirections ? so can be linked ) ... But I doesn't dig...
@fkhadra not so easy ... CRA 5 use webpack 5, which remove node js polyfill ; And lot of people can't migrate to it : https://github.com/facebook/create-react-app/issues/11756 . About my personal...
@fkhadra thank you, but it's not really a solution with react-scripts . It's a solution to doesn't use it :) . ( but, my case is "pretty" easy, I'm just...