Bug Report
Prerequisites
For more information, see the CONTRIBUTING guide.
Description
Test failed when I upgraded SDK version from 2.2.1 to 3.0.0.
Console Errors: TypeError: Cannot redefine property: BatchResponseContent
Screenshots:

Steps to Reproduce
- Create a new project.
npm init
- Install packages.
- Write a test script.
index.test.ts
import * as microsoftGraph from '@microsoft/microsoft-graph-client';
it('test', () => {
jest.spyOn(microsoftGraph, 'BatchResponseContent');
});
Expected behavior: Test passed.
Actual behavior: Test failed because cannot mock BatchResponseContent.
Additional Context
It works with @microsoft/[email protected]. Was it any changes?
Usage Information
Request ID - Value of the requestId field if you are receiving a Graph API error response
SDK Version - 3.0.0
Node Version - 14.17.6
Browser Name - [The name of Browser that you are using for SDK]
Version - [The version of the browser you are using]
Bug Report
Prerequisites
For more information, see the
CONTRIBUTINGguide.Description
Test failed when I upgraded SDK version from 2.2.1 to 3.0.0.
Console Errors: TypeError: Cannot redefine property: BatchResponseContent
Screenshots:

Steps to Reproduce
npm init@microsoft/[email protected]@types/[email protected][email protected][email protected][email protected]index.test.tsExpected behavior: Test passed.
Actual behavior: Test failed because cannot mock
BatchResponseContent.Additional Context
It works with
@microsoft/[email protected]. Was it any changes?Usage Information
Request ID - Value of the
requestIdfield if you are receiving a Graph API error responseSDK Version - 3.0.0