How to test file upload  using supertest, apollo-server-express and Jest,
Hi, I was trying to create a `jest` test with `supertest`  that uploads a file to the client.  i've already found issue #125 that faced the similar problem, and I already tried [jaydenseric](https://github.com/jaydenseric/graphql-upload/issues/125#issuecomment-440853538) and [awilderink ](https://github.com/jaydenseric/graphql-upload/issues/125#issuecomment-546314318) answers, but none of them worked. Bellow is my code right now
~~~js
const graphql = async (query, variables= {}, options) => {

  const map = { "1": ["variables.input.File"]}
  const file = variables.input.File
  const operations = JSON.stringify({ query, variables })
  //global.request  = supertest(app)
  const req = global.request.post('/graphql')
    .field("Content-Type", "multipart/form-data")
    .field('operations', operations)
    .field('map', JSON.stringify(map))
    .attach('1', file)
    .set('Cookie', options.cookie);

  return req;
};
it('should test creation of file by a User that is a Workspace admin', async () => {
 const response = await graphql(
      `
        mutation ($permission: IsAllowed, $input: AddFileInput) {
            addFile(permission: $permission, input: $input)
            {
                ID
                FileName
                URL
            }
        }
        `,
      {
        permission: {
          JobCode: aJob.ID,
          WorkspaceCode: aUser.workspaceID
        },
        input: {
          FileName: 'foo bar baz',
          Description: 'foo bar',
          File: path.resolve(__dirname, './utils/fileToUpload.txt'),
          RelatedObject: {
            ObjectCode: aJob.ID,
            ObjectType: "JOB"
          }
        }
      }, {
        cookie: aUser.auth
      }
    );
}
~~~


As you can see, my `input.File` is the file that represents my Upload field.

Unfortunatelly when I run the test an error is shown.
~~~
Error: Aborted

    at Test.<anonymous> (C:\Users\samue\Área de Trabalho\TRABALHO\SmartKanvas\node_modules\superagent\src\request-base.js:304:21)
    at Test.emit (events.js:400:28)
    at Test.abort (C:\Users\samue\Área de Trabalho\TRABALHO\SmartKanvas\node_modules\superagent\src\request-base.js:510:8)
    at FormData.<anonymous> (C:\Users\samue\Área de Trabalho\TRABALHO\SmartKanvas\node_modules\superagent\src\node\index.js:281:12)
    at FormData.emit (events.js:412:35)
    at FormData.Object.<anonymous>.CombinedStream._emitError (C:\Users\samue\Área de Trabalho\TRABALHO\SmartKanvas\node_modules\combined-stream\lib\combined_stream.js:207:8)
    at DelayedStream.<anonymous> (C:\Users\samue\Área de Trabalho\TRABALHO\SmartKanvas\node_modules\combined-stream\lib\combined_stream.js:133:10)
    at DelayedStream.emit (events.js:412:35)
    at DelayedStream.<anonymous> (C:\Users\samue\Área de Trabalho\TRABALHO\SmartKanvas\node_modules\delayed-stream\lib\delayed_stream.js:69:15)
    at Array.forEach (<anonymous>)
~~~

How can I implement that test correctly?