@elliemae/ds-test-utils 3.60.0-next.3 → 3.60.0-next.30
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 +22 -27
- package/dist/cjs/testeable-utils/DSVirtualList.js +0 -46
- package/dist/cjs/testeable-utils/DSVirtualList.js.map +0 -7
- package/dist/esm/testeable-utils/DSVirtualList.js +0 -23
- package/dist/esm/testeable-utils/DSVirtualList.js.map +0 -7
- package/dist/types/testeable-utils/DSVirtualList.d.ts +0 -0
- package/dist/types/tests/jest.axe.test.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-test-utils",
|
|
3
|
-
"version": "3.60.0-next.
|
|
3
|
+
"version": "3.60.0-next.30",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Test utilities",
|
|
6
6
|
"files": [
|
|
@@ -35,39 +35,34 @@
|
|
|
35
35
|
"reportFile": "tests.xml",
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
40
|
-
"test": "pui-cli test --passWithNoTests --coverage=\"false\"",
|
|
41
|
-
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
42
|
-
"lint:strict": "node ../../../scripts/lint-strict.mjs",
|
|
43
|
-
"dts": "node ../../../scripts/dts.mjs",
|
|
44
|
-
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
45
|
-
"dev:build": "pnpm --filter {.}... build",
|
|
46
|
-
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
47
|
-
"checkDeps": "npm exec ../ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
48
|
-
},
|
|
49
38
|
"dependencies": {
|
|
50
|
-
"@elliemae/pui-theme": "
|
|
51
|
-
"@tanstack/react-virtual": "catalog:",
|
|
52
|
-
"jest-axe": "^9.0.0",
|
|
53
|
-
"jest-matcher-utils": "^29.7.0"
|
|
39
|
+
"@elliemae/pui-theme": "~2.13.0"
|
|
54
40
|
},
|
|
55
41
|
"devDependencies": {
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"styled-components": "catalog:"
|
|
42
|
+
"jest": "^30.0.0",
|
|
43
|
+
"jest-axe": "~10.0.0",
|
|
44
|
+
"styled-components": "~5.3.9",
|
|
45
|
+
"@elliemae/ds-monorepo-devops": "3.60.0-next.30"
|
|
61
46
|
},
|
|
62
47
|
"peerDependencies": {
|
|
63
|
-
"@xstyled/styled-components": "
|
|
64
|
-
"react": "
|
|
65
|
-
"react-dom": "
|
|
66
|
-
"styled-components": "
|
|
48
|
+
"@xstyled/styled-components": "~3.8.1",
|
|
49
|
+
"react": "^18.3.1",
|
|
50
|
+
"react-dom": "^18.3.1",
|
|
51
|
+
"styled-components": "~5.3.9"
|
|
67
52
|
},
|
|
68
53
|
"publishConfig": {
|
|
69
54
|
"access": "public",
|
|
70
55
|
"typeSafety": false
|
|
71
56
|
},
|
|
72
|
-
"
|
|
73
|
-
|
|
57
|
+
"scripts": {
|
|
58
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
59
|
+
"test": "ds-monorepo-devops test --passWithNoTests --coverage=\"false\"",
|
|
60
|
+
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
61
|
+
"lint:strict": "node ../../../scripts/lint-strict.mjs",
|
|
62
|
+
"dts": "node ../../../scripts/dts.mjs",
|
|
63
|
+
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
64
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
65
|
+
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
66
|
+
"checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
}
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
|
-
var React = __toESM(require("react"));
|
|
25
|
-
jest.mock("@tanstack/react-virtual", () => {
|
|
26
|
-
const original = jest.requireActual("@tanstack/react-virtual");
|
|
27
|
-
return {
|
|
28
|
-
...original,
|
|
29
|
-
useVirtualizer: jest.fn((virtualOpts) => {
|
|
30
|
-
const finalOpts = {
|
|
31
|
-
...virtualOpts,
|
|
32
|
-
overscan: 15,
|
|
33
|
-
initialRect: {
|
|
34
|
-
height: 500,
|
|
35
|
-
width: 400
|
|
36
|
-
},
|
|
37
|
-
observeElementRect: (_, cb) => {
|
|
38
|
-
cb({ height: 500, width: 400 });
|
|
39
|
-
},
|
|
40
|
-
measureElement: () => 100
|
|
41
|
-
};
|
|
42
|
-
return original.useVirtualizer(finalOpts);
|
|
43
|
-
})
|
|
44
|
-
};
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=DSVirtualList.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/testeable-utils/DSVirtualList.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/require-await, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/ban-ts-comment */\n// @ts-nocheck\njest.mock('@tanstack/react-virtual', () => {\n const original = jest.requireActual('@tanstack/react-virtual');\n return {\n ...original,\n useVirtualizer: jest.fn((virtualOpts) => {\n const finalOpts = {\n ...virtualOpts,\n overscan: 15,\n initialRect: {\n height: 500,\n width: 400,\n },\n observeElementRect: (_, cb) => {\n cb({ height: 500, width: 400 });\n },\n measureElement: () => 100,\n };\n return original.useVirtualizer(finalOpts);\n }),\n };\n});\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACGvB,KAAK,KAAK,2BAA2B,MAAM;AACzC,QAAM,WAAW,KAAK,cAAc,yBAAyB;AAC7D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,gBAAgB,KAAK,GAAG,CAAC,gBAAgB;AACvC,YAAM,YAAY;AAAA,QAChB,GAAG;AAAA,QACH,UAAU;AAAA,QACV,aAAa;AAAA,UACX,QAAQ;AAAA,UACR,OAAO;AAAA,QACT;AAAA,QACA,oBAAoB,CAAC,GAAG,OAAO;AAC7B,aAAG,EAAE,QAAQ,KAAK,OAAO,IAAI,CAAC;AAAA,QAChC;AAAA,QACA,gBAAgB,MAAM;AAAA,MACxB;AACA,aAAO,SAAS,eAAe,SAAS;AAAA,IAC1C,CAAC;AAAA,EACH;AACF,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
jest.mock("@tanstack/react-virtual", () => {
|
|
3
|
-
const original = jest.requireActual("@tanstack/react-virtual");
|
|
4
|
-
return {
|
|
5
|
-
...original,
|
|
6
|
-
useVirtualizer: jest.fn((virtualOpts) => {
|
|
7
|
-
const finalOpts = {
|
|
8
|
-
...virtualOpts,
|
|
9
|
-
overscan: 15,
|
|
10
|
-
initialRect: {
|
|
11
|
-
height: 500,
|
|
12
|
-
width: 400
|
|
13
|
-
},
|
|
14
|
-
observeElementRect: (_, cb) => {
|
|
15
|
-
cb({ height: 500, width: 400 });
|
|
16
|
-
},
|
|
17
|
-
measureElement: () => 100
|
|
18
|
-
};
|
|
19
|
-
return original.useVirtualizer(finalOpts);
|
|
20
|
-
})
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=DSVirtualList.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/testeable-utils/DSVirtualList.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/require-await, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/ban-ts-comment */\n// @ts-nocheck\njest.mock('@tanstack/react-virtual', () => {\n const original = jest.requireActual('@tanstack/react-virtual');\n return {\n ...original,\n useVirtualizer: jest.fn((virtualOpts) => {\n const finalOpts = {\n ...virtualOpts,\n overscan: 15,\n initialRect: {\n height: 500,\n width: 400,\n },\n observeElementRect: (_, cb) => {\n cb({ height: 500, width: 400 });\n },\n measureElement: () => 100,\n };\n return original.useVirtualizer(finalOpts);\n }),\n };\n});\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACGvB,KAAK,KAAK,2BAA2B,MAAM;AACzC,QAAM,WAAW,KAAK,cAAc,yBAAyB;AAC7D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,gBAAgB,KAAK,GAAG,CAAC,gBAAgB;AACvC,YAAM,YAAY;AAAA,QAChB,GAAG;AAAA,QACH,UAAU;AAAA,QACV,aAAa;AAAA,UACX,QAAQ;AAAA,UACR,OAAO;AAAA,QACT;AAAA,QACA,oBAAoB,CAAC,GAAG,OAAO;AAC7B,aAAG,EAAE,QAAQ,KAAK,OAAO,IAAI,CAAC;AAAA,QAChC;AAAA,QACA,gBAAgB,MAAM;AAAA,MACxB;AACA,aAAO,SAAS,eAAe,SAAS;AAAA,IAC1C,CAAC;AAAA,EACH;AACF,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|