You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{expect,test}from'vitest';test(`should create a coorect formdata`,()=>{constform=document.createElement(`form`);document.body.appendChild(form);constformdata=newFormData(form);expect(formdata).toBeInstanceOf(FormData);});
TypeError: FormData constructor: Argument 1 could not be converted to: null.
Describe the bug
FormData
runs fine in Stackblitz but raisesTypeError
in node.Related: #2276 (maybe a more minimal reproduction here)
Reproduction
Stackblitz
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: