@magnit-ce/code-tests 0.0.14 → 0.0.15

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.
@@ -65,7 +65,7 @@ export declare type CodeTestsState = {
65
65
  contextHook?: Test;
66
66
  };
67
67
 
68
- declare type CodeTestState = {
68
+ export declare type CodeTestState = {
69
69
  testId: string;
70
70
  description: string;
71
71
  isDisabled: boolean;
@@ -94,7 +94,7 @@ export declare function createElementFromTemplate(target: string | HTMLTemplateE
94
94
 
95
95
  export declare function expect<T>(value: T): TestPromise<T>;
96
96
 
97
- declare type GroupTestResults = {
97
+ export declare type GroupTestResults = {
98
98
  totalTests: number;
99
99
  totalPassed: number;
100
100
  totalPercentage: number;
@@ -127,9 +127,9 @@ export declare type PromptOptions = {
127
127
  onReject?: () => void;
128
128
  };
129
129
 
130
- declare type Test = <T extends TestResultType>(context: TestContext) => T | Promise<T>;
130
+ export declare type Test = <T extends TestResultType>(context: TestContext) => T | Promise<T>;
131
131
 
132
- declare type TestContext = {
132
+ export declare type TestContext = {
133
133
  codeTestsElement: CodeTestsElement;
134
134
  testElement?: CodeTestElement;
135
135
  messageElement?: HTMLElement;
@@ -146,16 +146,16 @@ export declare class TestPromise<T> extends Promise<T> {
146
146
  toHaveAttribute(value: string): Promise<void>;
147
147
  }
148
148
 
149
- declare type TestResult = {
149
+ export declare type TestResult = {
150
150
  success: boolean;
151
151
  expected?: any;
152
152
  value: string | HTMLElement;
153
153
  data?: any;
154
154
  };
155
155
 
156
- declare type TestResultCategory = 'none' | 'success' | 'fail';
156
+ export declare type TestResultCategory = 'none' | 'success' | 'fail';
157
157
 
158
- declare type TestResultState = {
158
+ export declare type TestResultState = {
159
159
  hasRun: boolean;
160
160
  isRunning: boolean;
161
161
  resultCategory: TestResultCategory;
@@ -163,9 +163,9 @@ declare type TestResultState = {
163
163
  duration: number;
164
164
  };
165
165
 
166
- declare type TestResultType = void | undefined | string | TestResult | HTMLElement;
166
+ export declare type TestResultType = void | undefined | string | TestResult | HTMLElement;
167
167
 
168
- declare type TestState = TestResultState & {
168
+ export declare type TestState = TestResultState & {
169
169
  test: Test;
170
170
  };
171
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magnit-ce/code-tests",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "A custom html element that interprets and runs tests in a browser.",
5
5
  "main": "dist/code-tests.umd.js",
6
6
  "module": "dist/code-tests.js",