We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31c68c3 commit 7423f1aCopy full SHA for 7423f1a
tests/resources/drafts.spec.ts
@@ -19,6 +19,10 @@ jest.mock('formdata-node', () => {
19
}
20
};
21
this._getAppendedData = () => appendedData;
22
+ // Ensure the form property also has access to _getAppendedData
23
+ (this as any).form = {
24
+ _getAppendedData: () => appendedData
25
+ };
26
return this;
27
}),
28
File: jest.fn().mockImplementation((content: any[], name: string) => ({
0 commit comments