vest 4.3.1 → 4.3.2-dev-2805e3

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 (33) hide show
  1. package/dist/cjs/classnames.development.js +21 -18
  2. package/dist/cjs/classnames.production.js +1 -1
  3. package/dist/cjs/enforce/compounds.development.js +3 -3
  4. package/dist/cjs/enforce/compounds.production.js +1 -1
  5. package/dist/cjs/parser.development.js +21 -18
  6. package/dist/cjs/parser.production.js +1 -1
  7. package/dist/cjs/vest.development.js +121 -134
  8. package/dist/cjs/vest.production.js +1 -1
  9. package/dist/es/classnames.development.js +21 -18
  10. package/dist/es/classnames.production.js +1 -1
  11. package/dist/es/enforce/compounds.development.js +3 -3
  12. package/dist/es/enforce/compounds.production.js +1 -1
  13. package/dist/es/parser.development.js +21 -18
  14. package/dist/es/parser.production.js +1 -1
  15. package/dist/es/vest.development.js +121 -134
  16. package/dist/es/vest.production.js +1 -1
  17. package/dist/umd/classnames.development.js +21 -18
  18. package/dist/umd/classnames.production.js +1 -1
  19. package/dist/umd/enforce/compose.development.js +12 -8
  20. package/dist/umd/enforce/compose.production.js +1 -1
  21. package/dist/umd/enforce/compounds.development.js +15 -11
  22. package/dist/umd/enforce/compounds.production.js +1 -1
  23. package/dist/umd/enforce/schema.development.js +12 -8
  24. package/dist/umd/enforce/schema.production.js +1 -1
  25. package/dist/umd/parser.development.js +21 -18
  26. package/dist/umd/parser.production.js +1 -1
  27. package/dist/umd/vest.development.js +128 -141
  28. package/dist/umd/vest.production.js +1 -1
  29. package/package.json +3 -3
  30. package/types/classnames.d.ts +9 -5
  31. package/types/parser.d.ts +9 -5
  32. package/types/promisify.d.ts +9 -5
  33. package/types/vest.d.ts +10 -6
@@ -2,17 +2,21 @@
2
2
  * Reads the testObjects list and gets full validation result from it.
3
3
  */
4
4
  declare function genTestsSummary(): SuiteSummary;
5
- type Groups = Record<string, TestGroup>;
6
5
  type SuiteSummary = {
7
6
  groups: Groups;
8
- tests: TestGroup;
7
+ tests: Tests;
9
8
  valid: boolean;
10
9
  } & SummaryBase;
11
- type TestGroup = Record<string, SingleTestSummary>;
12
- type SingleTestSummary = SummaryBase & {
10
+ type GroupTestSummary = BaseTestSummary;
11
+ type Groups = Record<string, Group>;
12
+ type Group = Record<string, GroupTestSummary>;
13
+ type Tests = Record<string, SingleTestSummary>;
14
+ type SingleTestSummary = BaseTestSummary & {
15
+ valid: boolean;
16
+ };
17
+ type BaseTestSummary = SummaryBase & {
13
18
  errors: string[];
14
19
  warnings: string[];
15
- valid: boolean;
16
20
  };
17
21
  type SummaryBase = {
18
22
  errorCount: number;
package/types/vest.d.ts CHANGED
@@ -53,17 +53,21 @@ type CB = (...args: any[]) => void;
53
53
  * Reads the testObjects list and gets full validation result from it.
54
54
  */
55
55
  declare function genTestsSummary(): SuiteSummary;
56
- type Groups = Record<string, TestGroup>;
57
56
  type SuiteSummary = {
58
57
  groups: Groups;
59
- tests: TestGroup;
58
+ tests: Tests;
60
59
  valid: boolean;
61
60
  } & SummaryBase;
62
- type TestGroup = Record<string, SingleTestSummary>;
63
- type SingleTestSummary = SummaryBase & {
61
+ type GroupTestSummary = BaseTestSummary;
62
+ type Groups = Record<string, Group>;
63
+ type Group = Record<string, GroupTestSummary>;
64
+ type Tests = Record<string, SingleTestSummary>;
65
+ type SingleTestSummary = BaseTestSummary & {
66
+ valid: boolean;
67
+ };
68
+ type BaseTestSummary = SummaryBase & {
64
69
  errors: string[];
65
70
  warnings: string[];
66
- valid: boolean;
67
71
  };
68
72
  type SummaryBase = {
69
73
  errorCount: number;
@@ -349,6 +353,6 @@ declare const test: typeof testBase & {
349
353
  * Sets a running test to warn only mode.
350
354
  */
351
355
  declare function warn(): void;
352
- declare const VERSION = "4.3.1";
356
+ declare const VERSION = "4.3.2-dev-2805e3";
353
357
  export { test, create, each, only, skip, warn, group, optional, skipWhen, omitWhen, enforce, VERSION, context, include, eager };
354
358
  export type { SuiteResult, SuiteRunResult, SuiteSummary, VestTest, Suite };