@ohos-ports/focuson-lenstest 1.44.3-beta.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.
Files changed (88) hide show
  1. package/README.md +6 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +18 -0
  4. package/dist/src/DataDrivenFixedOptionDropDownAndDetails.spec.d.ts +1 -0
  5. package/dist/src/DataDrivenFixedOptionDropDownAndDetails.spec.js +70 -0
  6. package/dist/src/DatePicker.spec.d.ts +1 -0
  7. package/dist/src/DatePicker.spec.js +315 -0
  8. package/dist/src/DisplayStringWithLookup.spec.d.ts +1 -0
  9. package/dist/src/DisplayStringWithLookup.spec.js +42 -0
  10. package/dist/src/Label.spec.d.ts +1 -0
  11. package/dist/src/Label.spec.js +79 -0
  12. package/dist/src/Lens.spec.d.ts +1 -0
  13. package/dist/src/Lens.spec.js +164 -0
  14. package/dist/src/LensFixture.d.ts +28 -0
  15. package/dist/src/LensFixture.js +15 -0
  16. package/dist/src/LensState.spec.d.ts +1 -0
  17. package/dist/src/LensState.spec.js +100 -0
  18. package/dist/src/MonthYearDataPickerWithLength.spec.d.ts +1 -0
  19. package/dist/src/MonthYearDataPickerWithLength.spec.js +21 -0
  20. package/dist/src/WithTextLayout.spec.d.ts +1 -0
  21. package/dist/src/WithTextLayout.spec.js +29 -0
  22. package/dist/src/actions.spec.d.ts +1 -0
  23. package/dist/src/actions.spec.js +40 -0
  24. package/dist/src/composition.spec.d.ts +1 -0
  25. package/dist/src/composition.spec.js +28 -0
  26. package/dist/src/context.fixture.d.ts +6 -0
  27. package/dist/src/context.fixture.js +9 -0
  28. package/dist/src/dateutils.spec.d.ts +1 -0
  29. package/dist/src/dateutils.spec.js +166 -0
  30. package/dist/src/deleteState.spec.d.ts +1 -0
  31. package/dist/src/deleteState.spec.js +36 -0
  32. package/dist/src/dropdown.spec.d.ts +1 -0
  33. package/dist/src/dropdown.spec.js +46 -0
  34. package/dist/src/enzymeAdapterSetup.d.ts +1 -0
  35. package/dist/src/enzymeAdapterSetup.js +12 -0
  36. package/dist/src/fetcher.fixture.d.ts +38 -0
  37. package/dist/src/fetcher.fixture.js +20 -0
  38. package/dist/src/fetchers.spec.d.ts +1 -0
  39. package/dist/src/fetchers.spec.js +346 -0
  40. package/dist/src/focusedPage.spec.d.ts +1 -0
  41. package/dist/src/focusedPage.spec.js +70 -0
  42. package/dist/src/labelAnd.spec.d.ts +1 -0
  43. package/dist/src/labelAnd.spec.js +105 -0
  44. package/dist/src/labelAndDateInput.spec.d.ts +1 -0
  45. package/dist/src/labelAndDateInput.spec.js +26 -0
  46. package/dist/src/lenspath.spec.d.ts +1 -0
  47. package/dist/src/lenspath.spec.js +171 -0
  48. package/dist/src/memoisation.spec.d.ts +1 -0
  49. package/dist/src/memoisation.spec.js +11 -0
  50. package/dist/src/messages.spec.d.ts +1 -0
  51. package/dist/src/messages.spec.js +34 -0
  52. package/dist/src/modalButton.integration.spec.d.ts +23 -0
  53. package/dist/src/modalButton.integration.spec.js +299 -0
  54. package/dist/src/modalButton.spec.d.ts +1 -0
  55. package/dist/src/modalButton.spec.js +147 -0
  56. package/dist/src/newFetchers.spec.d.ts +1 -0
  57. package/dist/src/newFetchers.spec.js +214 -0
  58. package/dist/src/optics.spec.d.ts +2 -0
  59. package/dist/src/optics.spec.js +195 -0
  60. package/dist/src/page.fixture.d.ts +30 -0
  61. package/dist/src/page.fixture.js +55 -0
  62. package/dist/src/pageSelection.spec.d.ts +1 -0
  63. package/dist/src/pageSelection.spec.js +146 -0
  64. package/dist/src/post.spec.d.ts +1 -0
  65. package/dist/src/post.spec.js +84 -0
  66. package/dist/src/postButton.spec.d.ts +2 -0
  67. package/dist/src/postButton.spec.js +26 -0
  68. package/dist/src/preMutate.spec.d.ts +1 -0
  69. package/dist/src/preMutate.spec.js +63 -0
  70. package/dist/src/radioButton.spec.d.ts +1 -0
  71. package/dist/src/radioButton.spec.js +48 -0
  72. package/dist/src/restButton.spec.d.ts +13 -0
  73. package/dist/src/restButton.spec.js +95 -0
  74. package/dist/src/selectedItem.spec.d.ts +1 -0
  75. package/dist/src/selectedItem.spec.js +50 -0
  76. package/dist/src/stateAndFromApiTagFetcher.spec.d.ts +1 -0
  77. package/dist/src/stateAndFromApiTagFetcher.spec.js +59 -0
  78. package/dist/src/table.spec.d.ts +1 -0
  79. package/dist/src/table.spec.js +215 -0
  80. package/dist/src/tagFetcher.fixture.d.ts +7 -0
  81. package/dist/src/tagFetcher.fixture.js +16 -0
  82. package/dist/src/tagFetcher.spec.d.ts +1 -0
  83. package/dist/src/tagFetcher.spec.js +67 -0
  84. package/dist/src/template.spec.d.ts +1 -0
  85. package/dist/src/template.spec.js +58 -0
  86. package/dist/src/utils.spec.d.ts +1 -0
  87. package/dist/src/utils.spec.js +61 -0
  88. package/package.json +96 -0
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "@ohos-ports/focuson-lenstest",
3
+ "description": "Tests the lens defined in @focuson/lens, the state defined in @focuson/state, and the fetchers in @focuson/fetcher",
4
+ "version": "1.44.3-beta.1",
5
+ "main": "dist/index",
6
+ "types": "dist/index",
7
+ "browserslist": {
8
+ "development": [
9
+ "last 1 chrome version",
10
+ "last 1 firefox version",
11
+ "last 1 safari version"
12
+ ],
13
+ "production": [
14
+ ">0.2%",
15
+ "not dead",
16
+ "not op_mini all"
17
+ ]
18
+ },
19
+ "dependencies": {
20
+ "@focuson/focuson": "1.44.3",
21
+ "@focuson/form_components": "1.44.3",
22
+ "@focuson/forms": "1.44.3",
23
+ "@focuson/pages": "1.44.3",
24
+ "@focuson/template": "1.44.3",
25
+ "debug": "^4.3.4"
26
+ },
27
+ "devDependencies": {
28
+ "@ohos-ports/storybook": "^10.5.8-beta.5",
29
+ "@testing-library/dom": "9.3.3",
30
+ "@testing-library/jest-dom": "^5.14.1",
31
+ "@testing-library/react": "^11.2.7",
32
+ "@testing-library/user-event": "^13.2.1",
33
+ "@types/enzyme": "^3.10.19",
34
+ "@types/enzyme-adapter-react-16": "^1.0.9",
35
+ "@types/jest": "^26.0.24",
36
+ "@types/node": "^18.0.0",
37
+ "@types/react": "^17.0.37",
38
+ "@types/react-dom": "^17.0.11",
39
+ "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
40
+ "bootstrap": "^5.3.2",
41
+ "enzyme": "^3.11.0",
42
+ "enzyme-adapter-react-16": "^1.15.8",
43
+ "eslint": "^8.52.0",
44
+ "jest": "^27.4.7",
45
+ "npm-check-updates": "^10.0.0",
46
+ "prop-types": "15.8.1",
47
+ "react": "17.0.2",
48
+ "react-dom": "17.0.2",
49
+ "react-scripts": "^5.0.1",
50
+ "ts-jest": "^27.1.3",
51
+ "typescript": "^5.2.2"
52
+ },
53
+ "eslintConfig": {
54
+ "extends": [
55
+ "react-app",
56
+ "react-app/jest"
57
+ ],
58
+ "overrides": [
59
+ {
60
+ "files": [
61
+ "**/*.stories.*"
62
+ ],
63
+ "rules": {
64
+ "import/no-anonymous-default-export": "off"
65
+ }
66
+ }
67
+ ]
68
+ },
69
+ "files": [
70
+ "dist/index.js",
71
+ "dist/index.d.ts",
72
+ "dist/src/"
73
+ ],
74
+ "keywords": [
75
+ "react",
76
+ "runbook"
77
+ ],
78
+ "license": "MIT",
79
+ "peerDependencies": {
80
+ "react": "^17.0.2",
81
+ "react-dom": "^17.0.2"
82
+ },
83
+ "repository": {
84
+ "type": "git",
85
+ "url": "https://github.com/ohos-ports/ohos-ports.git",
86
+ "directory": "ports/focuson-lenstest/1.44.3"
87
+ },
88
+ "scripts": {
89
+ "test": "jest --config jest.config.json",
90
+ "test:watch": "npm run test -- --watch",
91
+ "start": "react-scripts start",
92
+ "build": "react-scripts build",
93
+ "storybook": "storybook dev -p 6006",
94
+ "build-storybook": "storybook build"
95
+ }
96
+ }