@elliemae/ds-test-utils 3.22.0-next.8 → 3.22.0-rc.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,6BAAuE;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/testeable-utils/DSVirtualList.ts", "../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../src/testeable-utils/DSVirtualList.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-assignment */\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* eslint-disable import/namespace */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n// @ts-nocheck\nimport * as virtualLib from '@tanstack/react-virtual';\n// this mutableScope thing may be over-kill\n// better safe than sorry?\nconst mutableScope = { original: virtualLib.useVirtualizer };\n\ntype MakeTesteableParams = {\n overscan: number;\n itemHeight: number;\n parentHeight: number;\n width?: number;\n};\n\nexport const makeDSVirtualListTesteable = async ({\n overscan,\n itemHeight,\n parentHeight,\n width = 400,\n}: MakeTesteableParams): void => {\n // await import is used to avoid \"read-only\" imports at global level\n // which would prevent run-time monekey-patching\n const lib = await import('@tanstack/react-virtual');\n lib.useVirtualizer = jest.fn((virtualOpts: Parameters<virtualLib.originalUseVirtualizer>) =>\n mutableScope.original({\n ...virtualOpts,\n overscan,\n initialRect: { height: parentHeight, width },\n observeElementRect: (_, cb) => {\n cb({ height: parentHeight, width });\n },\n measureElement: () => itemHeight,\n }),\n );\n};\n\nexport const undoDSVirtualListTesteable = async () => {\n // await import is used to avoid \"read-only\" imports at global level\n // which would prevent run-time monekey-patching\n const lib = await import('@tanstack/react-virtual');\n lib.useVirtualizer = mutableScope.original;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADMvB,iBAA4B;AAG5B,MAAM,eAAe,EAAE,UAAU,WAAW,eAAe;AASpD,MAAM,6BAA6B,OAAO;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AACV,MAAiC;AAG/B,QAAM,MAAM,MAAM,OAAO,yBAAyB;AAClD,MAAI,iBAAiB,KAAK;AAAA,IAAG,CAAC,gBAC5B,aAAa,SAAS;AAAA,MACpB,GAAG;AAAA,MACH;AAAA,MACA,aAAa,EAAE,QAAQ,cAAc,MAAM;AAAA,MAC3C,oBAAoB,CAAC,GAAG,OAAO;AAC7B,WAAG,EAAE,QAAQ,cAAc,MAAM,CAAC;AAAA,MACpC;AAAA,MACA,gBAAgB,MAAM;AAAA,IACxB,CAAC;AAAA,EACH;AACF;AAEO,MAAM,6BAA6B,YAAY;AAGpD,QAAM,MAAM,MAAM,OAAO,yBAAyB;AAClD,MAAI,iBAAiB,aAAa;AACpC;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/testeable-utils/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../src/testeable-utils/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAuE;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './testeable-utils/index.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,4BAA4B,kCAAkC;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/testeable-utils/DSVirtualList.ts"],
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/testeable-utils/DSVirtualList.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-assignment */\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* eslint-disable import/namespace */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n// @ts-nocheck\nimport * as virtualLib from '@tanstack/react-virtual';\n// this mutableScope thing may be over-kill\n// better safe than sorry?\nconst mutableScope = { original: virtualLib.useVirtualizer };\n\ntype MakeTesteableParams = {\n overscan: number;\n itemHeight: number;\n parentHeight: number;\n width?: number;\n};\n\nexport const makeDSVirtualListTesteable = async ({\n overscan,\n itemHeight,\n parentHeight,\n width = 400,\n}: MakeTesteableParams): void => {\n // await import is used to avoid \"read-only\" imports at global level\n // which would prevent run-time monekey-patching\n const lib = await import('@tanstack/react-virtual');\n lib.useVirtualizer = jest.fn((virtualOpts: Parameters<virtualLib.originalUseVirtualizer>) =>\n mutableScope.original({\n ...virtualOpts,\n overscan,\n initialRect: { height: parentHeight, width },\n observeElementRect: (_, cb) => {\n cb({ height: parentHeight, width });\n },\n measureElement: () => itemHeight,\n }),\n );\n};\n\nexport const undoDSVirtualListTesteable = async () => {\n // await import is used to avoid \"read-only\" imports at global level\n // which would prevent run-time monekey-patching\n const lib = await import('@tanstack/react-virtual');\n lib.useVirtualizer = mutableScope.original;\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACMvB,YAAY,gBAAgB;AAG5B,MAAM,eAAe,EAAE,UAAU,WAAW,eAAe;AASpD,MAAM,6BAA6B,OAAO;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AACV,MAAiC;AAG/B,QAAM,MAAM,MAAM,OAAO,yBAAyB;AAClD,MAAI,iBAAiB,KAAK;AAAA,IAAG,CAAC,gBAC5B,aAAa,SAAS;AAAA,MACpB,GAAG;AAAA,MACH;AAAA,MACA,aAAa,EAAE,QAAQ,cAAc,MAAM;AAAA,MAC3C,oBAAoB,CAAC,GAAG,OAAO;AAC7B,WAAG,EAAE,QAAQ,cAAc,MAAM,CAAC;AAAA,MACpC;AAAA,MACA,gBAAgB,MAAM;AAAA,IACxB,CAAC;AAAA,EACH;AACF;AAEO,MAAM,6BAA6B,YAAY;AAGpD,QAAM,MAAM,MAAM,OAAO,yBAAyB;AAClD,MAAI,iBAAiB,aAAa;AACpC;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/testeable-utils/index.ts"],
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/testeable-utils/index.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { makeDSVirtualListTesteable, undoDSVirtualListTesteable } from './DSVirtualList.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,4BAA4B,kCAAkC;",
6
6
  "names": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-test-utils",
3
- "version": "3.22.0-next.8",
3
+ "version": "3.22.0-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Test utilities",
6
6
  "files": [
@@ -43,14 +43,16 @@
43
43
  "axe-core": "4.6.3",
44
44
  "jest-axe": "7.0.1",
45
45
  "jest-matcher-utils": "29.5.0",
46
- "@elliemae/ds-system": "3.22.0-next.8"
46
+ "@elliemae/ds-system": "3.22.0-rc.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@elliemae/pui-cli": "~9.0.0-next.17",
49
+ "@elliemae/pui-cli": "~9.0.0-next.22",
50
50
  "@testing-library/jest-dom": "~5.16.5",
51
51
  "@testing-library/react": "~12.1.3",
52
+ "@testing-library/user-event": "~13.5.0",
53
+ "jest-axe": "^7.0.1",
52
54
  "styled-components": "~5.3.9",
53
- "@elliemae/ds-monorepo-devops": "3.22.0-next.8"
55
+ "@elliemae/ds-monorepo-devops": "3.22.0-rc.1"
54
56
  },
55
57
  "peerDependencies": {
56
58
  "react": "^17.0.2",
@@ -62,12 +64,12 @@
62
64
  "typeSafety": false
63
65
  },
64
66
  "scripts": {
65
- "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
67
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
66
68
  "test": "pui-cli test --passWithNoTests",
67
- "lint": "node ../../scripts/lint.mjs",
68
- "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
69
- "dts": "node ../../scripts/dts.mjs",
70
- "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
69
+ "lint": "node ../../../scripts/lint.mjs",
70
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
71
+ "dts": "node ../../../scripts/dts.mjs",
72
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
71
73
  "dev:build": "pnpm --filter {.}... build",
72
74
  "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
73
75
  "checkDeps": "npm exec ../ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""