@multiplatform.one/test-utils 6.6.0 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/setup.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/test-utils",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "Shared testing utilities for multiplatform.one packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"multiplatform.one",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"node": ">=18.0.0"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
|
-
"typecheck": "
|
|
77
|
+
"typecheck": "tsgo --noEmit",
|
|
78
78
|
"build": "rm -rf types 2>/dev/null && tsc -p tsconfig.build.json"
|
|
79
79
|
}
|
|
80
80
|
}
|
package/src/setup.ts
CHANGED
|
@@ -327,6 +327,8 @@ window.ResizeObserver = MockResizeObserver as any;
|
|
|
327
327
|
class MockIntersectionObserver implements IntersectionObserver {
|
|
328
328
|
readonly root: Element | null = null;
|
|
329
329
|
readonly rootMargin: string = "0px";
|
|
330
|
+
// TS7's dom lib added scrollMargin to the interface.
|
|
331
|
+
readonly scrollMargin: string = "0px";
|
|
330
332
|
readonly thresholds: ReadonlyArray<number> = [0];
|
|
331
333
|
observe(): void {}
|
|
332
334
|
unobserve(): void {}
|