title: FormData is not defined in React Jest
body: <p>I am writing a unit testing code for the React project. I am trying to test one function</p>
  
  <pre><code>//function aa
  export const login = (values) =&gt; async =&gt; (dispatch) =&gt; {
    let bodyFormData = new FormData();
  
    bodyFormData.append('username', values.login);
    bodyFormData.append('password', values.password);
    return await axios({
     method: 'post',
     url: url,
     data: bodyFormData
    }
  }
  
  //aa test
  it("Login Action", async () =&gt; {
    afterEach(() =&gt; {
      store.clearActions();
    });
    const values = {
      login: "aaaaa",
      password: "bbbbb"
    };
    const expectedResult = { type: "LOGIN_PASS" };
  
    const result = await store.dispatch(login(values));
    expect(result).toEqual(expectedResult);
  });
  </code></pre>
  
  <p>In the browser, this works ok. but when testing I get below error</p>
  
  <p><strong>ReferenceError: FormData is not defined</strong></p>
  
  <p>I tried to use this module but no luck...
  <a href="https://www.npmjs.com/package/form-data" rel="nofollow noreferrer">https://www.npmjs.com/package/form-data</a></p>
  
  <p>I do not want to just test axios, I need to test full function.</p>