@plyaz/types 1.3.6 → 1.3.7

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.
@@ -1660,3 +1660,36 @@ export interface CreateMockWebSocketServerReturn {
1660
1660
  listeners: Vitest.Mock;
1661
1661
  listenerCount: Vitest.Mock;
1662
1662
  }
1663
+ /**
1664
+ * Console mock with advanced capture and filtering
1665
+ *
1666
+ * @public
1667
+ */
1668
+ export interface AdvancedConsoleMock {
1669
+ log: Vitest.Mock;
1670
+ warn: Vitest.Mock;
1671
+ error: Vitest.Mock;
1672
+ info: Vitest.Mock;
1673
+ debug: Vitest.Mock;
1674
+ logs: string[];
1675
+ warnings: string[];
1676
+ errors: string[];
1677
+ infos: string[];
1678
+ debugs: string[];
1679
+ all: Array<{
1680
+ type: string;
1681
+ args: unknown[];
1682
+ }>;
1683
+ install: () => void;
1684
+ uninstall: () => void;
1685
+ clear: () => void;
1686
+ filter: (pattern: string | RegExp) => Array<{
1687
+ type: string;
1688
+ message: string;
1689
+ }>;
1690
+ hasLog: (pattern: string | RegExp) => boolean;
1691
+ hasWarning: (pattern: string | RegExp) => boolean;
1692
+ hasError: (pattern: string | RegExp) => boolean;
1693
+ getLastLog: () => string | undefined;
1694
+ getLastError: () => string | undefined;
1695
+ }
@@ -395,3 +395,19 @@ export interface CreateMockBatchHandlerReturn<T> {
395
395
  getResults: () => Map<string, T>;
396
396
  clear: () => void;
397
397
  }
398
+ /**
399
+ * Options for createTableDrivenTest
400
+ */
401
+ export interface CreateTableDrivenTestOptions<TInput, TExpected> {
402
+ name: string;
403
+ cases: Array<TInput & {
404
+ name: string;
405
+ expected?: TExpected;
406
+ }>;
407
+ test?: (testCase: TInput & {
408
+ expected?: TExpected;
409
+ }) => void | Promise<void>;
410
+ fn?: (testCase: TInput & {
411
+ expected?: TExpected;
412
+ }) => void | Promise<void>;
413
+ }
@@ -1277,3 +1277,47 @@ export interface WaitForFlagValueOptions {
1277
1277
  /** Maximum wait time in ms */
1278
1278
  timeout?: number;
1279
1279
  }
1280
+ /**
1281
+ * File data structure for feature flag providers
1282
+ *
1283
+ * @public
1284
+ */
1285
+ export interface FeatureFlagFileData<FeatureFlagKey extends string> {
1286
+ flags: Array<FeatureFlag<FeatureFlagKey>>;
1287
+ rules: Array<FeatureFlagRule<FeatureFlagKey>>;
1288
+ }
1289
+ /**
1290
+ * Test file system context for feature flag file testing
1291
+ *
1292
+ * @public
1293
+ */
1294
+ export interface FeatureFlagFileTestContext {
1295
+ testDir: string;
1296
+ jsonFile: string;
1297
+ yamlFile: string;
1298
+ cleanup: () => Promise<void>;
1299
+ }
1300
+ /**
1301
+ * Provider test operation for stress testing
1302
+ *
1303
+ * @public
1304
+ */
1305
+ export interface ProviderTestOperation {
1306
+ name: string;
1307
+ operation: () => unknown | Promise<unknown>;
1308
+ weight?: number;
1309
+ }
1310
+ /**
1311
+ * Provider stress test configuration
1312
+ *
1313
+ * @public
1314
+ */
1315
+ export interface ProviderStressTestConfig {
1316
+ workerCount?: number;
1317
+ operationsPerWorker?: number;
1318
+ delayBetweenOps?: number;
1319
+ operations?: ProviderTestOperation[];
1320
+ operationCount?: number;
1321
+ concurrency?: number;
1322
+ operationMix?: Record<string, number>;
1323
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",