We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6260a57 + 55f55a1 commit 52a5b4cCopy full SHA for 52a5b4c
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "jsdom-testing-mocks",
3
- "version": "1.2.0",
+ "version": "1.2.1",
4
"author": "Ivan Galiatin",
5
"license": "MIT",
6
"description": "A set of tools for emulating browser behavior in jsdom environment",
src/mocks/size.ts
@@ -40,7 +40,5 @@ export const mockElementBoundingClientRect = (
40
toJSON: () => JSON.stringify(boundingClientRect),
41
}));
42
43
- afterEach(() => {
44
- element.getBoundingClientRect = savedImplementation;
45
- });
+ return savedImplementation;
46
};
0 commit comments