@c-a-f/testing 1.0.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 (70) hide show
  1. package/.build/__tests__/react/renderWithCAF.spec.d.ts +1 -0
  2. package/.build/__tests__/react/renderWithCAF.spec.js +53 -0
  3. package/.build/index.d.ts +1 -0
  4. package/.build/index.js +1 -0
  5. package/.build/src/angular/createTestPloc.d.ts +19 -0
  6. package/.build/src/angular/createTestPloc.js +21 -0
  7. package/.build/src/angular/index.d.ts +12 -0
  8. package/.build/src/angular/index.js +12 -0
  9. package/.build/src/angular/mockUseCase.d.ts +32 -0
  10. package/.build/src/angular/mockUseCase.js +40 -0
  11. package/.build/src/angular/provideTestingCAF.d.ts +29 -0
  12. package/.build/src/angular/provideTestingCAF.js +26 -0
  13. package/.build/src/angular/waitForPlocState.d.ts +18 -0
  14. package/.build/src/angular/waitForPlocState.js +20 -0
  15. package/.build/src/core/IntegrationTestHelpers.d.ts +77 -0
  16. package/.build/src/core/IntegrationTestHelpers.js +78 -0
  17. package/.build/src/core/PlocTestHelpers.d.ts +133 -0
  18. package/.build/src/core/PlocTestHelpers.js +205 -0
  19. package/.build/src/core/PulseTestHelpers.d.ts +71 -0
  20. package/.build/src/core/PulseTestHelpers.js +106 -0
  21. package/.build/src/core/RepositoryTestHelpers.d.ts +48 -0
  22. package/.build/src/core/RepositoryTestHelpers.js +76 -0
  23. package/.build/src/core/RouteTestHelpers.d.ts +67 -0
  24. package/.build/src/core/RouteTestHelpers.js +94 -0
  25. package/.build/src/core/UseCaseTestHelpers.d.ts +100 -0
  26. package/.build/src/core/UseCaseTestHelpers.js +161 -0
  27. package/.build/src/core/index.d.ts +6 -0
  28. package/.build/src/core/index.js +6 -0
  29. package/.build/src/i18n/I18nTestHelpers.d.ts +76 -0
  30. package/.build/src/i18n/I18nTestHelpers.js +122 -0
  31. package/.build/src/i18n/index.d.ts +1 -0
  32. package/.build/src/i18n/index.js +1 -0
  33. package/.build/src/index.d.ts +5 -0
  34. package/.build/src/index.js +10 -0
  35. package/.build/src/permission/PermissionTestHelpers.d.ts +75 -0
  36. package/.build/src/permission/PermissionTestHelpers.js +121 -0
  37. package/.build/src/permission/index.d.ts +1 -0
  38. package/.build/src/permission/index.js +1 -0
  39. package/.build/src/react/createTestPloc.d.ts +19 -0
  40. package/.build/src/react/createTestPloc.js +21 -0
  41. package/.build/src/react/index.d.ts +12 -0
  42. package/.build/src/react/index.js +12 -0
  43. package/.build/src/react/mockUseCase.d.ts +36 -0
  44. package/.build/src/react/mockUseCase.js +44 -0
  45. package/.build/src/react/renderWithCAF.d.ts +31 -0
  46. package/.build/src/react/renderWithCAF.js +23 -0
  47. package/.build/src/react/waitForPlocState.d.ts +22 -0
  48. package/.build/src/react/waitForPlocState.js +24 -0
  49. package/.build/src/validation/ValidationTestHelpers.d.ts +66 -0
  50. package/.build/src/validation/ValidationTestHelpers.js +118 -0
  51. package/.build/src/validation/index.d.ts +1 -0
  52. package/.build/src/validation/index.js +1 -0
  53. package/.build/src/vue/createTestPloc.d.ts +19 -0
  54. package/.build/src/vue/createTestPloc.js +21 -0
  55. package/.build/src/vue/index.d.ts +12 -0
  56. package/.build/src/vue/index.js +12 -0
  57. package/.build/src/vue/mockUseCase.d.ts +34 -0
  58. package/.build/src/vue/mockUseCase.js +42 -0
  59. package/.build/src/vue/mountWithCAF.d.ts +31 -0
  60. package/.build/src/vue/mountWithCAF.js +40 -0
  61. package/.build/src/vue/waitForPlocState.d.ts +19 -0
  62. package/.build/src/vue/waitForPlocState.js +21 -0
  63. package/.build/src/workflow/WorkflowTestHelpers.d.ts +75 -0
  64. package/.build/src/workflow/WorkflowTestHelpers.js +146 -0
  65. package/.build/src/workflow/index.d.ts +1 -0
  66. package/.build/src/workflow/index.js +1 -0
  67. package/.build/vitest.config.d.ts +7 -0
  68. package/.build/vitest.config.js +6 -0
  69. package/README.md +598 -0
  70. package/package.json +127 -0
package/package.json ADDED
@@ -0,0 +1,127 @@
1
+ {
2
+ "name": "@c-a-f/testing",
3
+ "type": "module",
4
+ "version": "1.0.1",
5
+ "description": "Testing utilities and helpers for CAF applications. Provides mocks, test helpers, and utilities for testing UseCase, Ploc, Pulse, Workflow, Permission, I18n, and Validation.",
6
+ "keywords": [
7
+ "clean-architecture-frontend",
8
+ "clean-architecture",
9
+ "caf",
10
+ "testing",
11
+ "test-utils",
12
+ "mocks",
13
+ "test-helpers"
14
+ ],
15
+ "author": "ali aslani <aliaslani.mm@gmail.com>",
16
+ "license": "MIT",
17
+ "repository": "https://github.com/ialiaslani/caf.git",
18
+ "main": "./.build/index.js",
19
+ "module": "./.build/index.js",
20
+ "types": "./.build/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./.build/index.d.ts",
24
+ "import": "./.build/index.js",
25
+ "node": "./.build/index.js",
26
+ "default": "./.build/index.js"
27
+ },
28
+ "./core": {
29
+ "types": "./.build/src/core/index.d.ts",
30
+ "import": "./.build/src/core/index.js",
31
+ "node": "./.build/src/core/index.js",
32
+ "default": "./.build/src/core/index.js"
33
+ },
34
+ "./workflow": {
35
+ "types": "./.build/src/workflow/index.d.ts",
36
+ "import": "./.build/src/workflow/index.js",
37
+ "node": "./.build/src/workflow/index.js",
38
+ "default": "./.build/src/workflow/index.js"
39
+ },
40
+ "./permission": {
41
+ "types": "./.build/src/permission/index.d.ts",
42
+ "import": "./.build/src/permission/index.js",
43
+ "node": "./.build/src/permission/index.js",
44
+ "default": "./.build/src/permission/index.js"
45
+ },
46
+ "./i18n": {
47
+ "types": "./.build/src/i18n/index.d.ts",
48
+ "import": "./.build/src/i18n/index.js",
49
+ "node": "./.build/src/i18n/index.js",
50
+ "default": "./.build/src/i18n/index.js"
51
+ },
52
+ "./validation": {
53
+ "types": "./.build/src/validation/index.d.ts",
54
+ "import": "./.build/src/validation/index.js",
55
+ "node": "./.build/src/validation/index.js",
56
+ "default": "./.build/src/validation/index.js"
57
+ },
58
+ "./react": {
59
+ "types": "./.build/src/react/index.d.ts",
60
+ "import": "./.build/src/react/index.js",
61
+ "node": "./.build/src/react/index.js",
62
+ "default": "./.build/src/react/index.js"
63
+ },
64
+ "./vue": {
65
+ "types": "./.build/src/vue/index.d.ts",
66
+ "import": "./.build/src/vue/index.js",
67
+ "node": "./.build/src/vue/index.js",
68
+ "default": "./.build/src/vue/index.js"
69
+ },
70
+ "./angular": {
71
+ "types": "./.build/src/angular/index.d.ts",
72
+ "import": "./.build/src/angular/index.js",
73
+ "node": "./.build/src/angular/index.js",
74
+ "default": "./.build/src/angular/index.js"
75
+ }
76
+ },
77
+ "files": [
78
+ ".build"
79
+ ],
80
+ "scripts": {
81
+ "build": "tsc --build",
82
+ "start": "tsc --watch",
83
+ "test": "vitest run",
84
+ "test:watch": "vitest",
85
+ "prepublishOnly": "npm run build"
86
+ },
87
+ "dependencies": {
88
+ "@c-a-f/core": "1.0.3",
89
+ "@c-a-f/infrastructure-angular": "^1.0.1",
90
+ "@c-a-f/infrastructure-react": "^1.0.4",
91
+ "@c-a-f/infrastructure-vue": "^1.0.0",
92
+ "@c-a-f/i18n": "1.0.0",
93
+ "@c-a-f/permission": "1.0.0",
94
+ "@c-a-f/validation": "1.0.3",
95
+ "@c-a-f/workflow": "1.0.1"
96
+ },
97
+ "peerDependencies": {
98
+ "@angular/core": ">=18.0.0",
99
+ "@testing-library/react": ">=14.0.0",
100
+ "@vue/test-utils": ">=2.0.0",
101
+ "react": ">=16.8.0",
102
+ "vue": ">=3.0.0"
103
+ },
104
+ "peerDependenciesMeta": {
105
+ "@angular/core": {
106
+ "optional": true
107
+ },
108
+ "@testing-library/react": {
109
+ "optional": true
110
+ },
111
+ "@vue/test-utils": {
112
+ "optional": true
113
+ },
114
+ "react": {
115
+ "optional": true
116
+ },
117
+ "vue": {
118
+ "optional": true
119
+ }
120
+ },
121
+ "devDependencies": {
122
+ "@testing-library/react": "^16.0.0",
123
+ "happy-dom": "^15.11.7",
124
+ "react": "^18.2.0",
125
+ "vitest": "^2.1.0"
126
+ }
127
+ }