@burdenoff/microfe-cosmicintersection 2026.1030.3 → 2026.1030.4
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.
- package/dist/test/fakeGateway.d.ts +17 -0
- package/dist/test/fakeGateway.d.ts.map +1 -0
- package/dist/test/fixtures.d.ts +33 -0
- package/dist/test/fixtures.d.ts.map +1 -0
- package/dist/test/renderWithProviders.d.ts +16 -0
- package/dist/test/renderWithProviders.d.ts.map +1 -0
- package/dist/test/setup.d.ts +1 -8
- package/dist/test/setup.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApolloClient } from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
export type GatewayVariables = Record<string, unknown>;
|
|
4
|
+
/** A handler returns the `data` payload, or throws to model a GraphQL error. */
|
|
5
|
+
export type OperationHandler = (variables: GatewayVariables) => Record<string, unknown>;
|
|
6
|
+
export interface GatewayCall {
|
|
7
|
+
operationName: string;
|
|
8
|
+
variables: GatewayVariables;
|
|
9
|
+
}
|
|
10
|
+
export interface FakeGateway {
|
|
11
|
+
client: ApolloClient;
|
|
12
|
+
calls: GatewayCall[];
|
|
13
|
+
/** Calls recorded for one operation, in order. */
|
|
14
|
+
callsFor: (operationName: string) => GatewayCall[];
|
|
15
|
+
}
|
|
16
|
+
export declare function createFakeGateway(handlers: Record<string, OperationHandler>): FakeGateway;
|
|
17
|
+
//# sourceMappingURL=fakeGateway.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fakeGateway.d.ts","sourceRoot":"","sources":["../../src/test/fakeGateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,YAAY,EAAyC,MAAM,gBAAgB,CAAC;AAGrF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEvD,gFAAgF;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,gBAAgB,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExF,MAAM,WAAW,WAAW;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,kDAAkD;IAClD,QAAQ,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,WAAW,EAAE,CAAC;CACpD;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,WAAW,CAkCzF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CosConnection, CosDataset, CosNotebook, CosPageInfo, CosPipeline, CosPipelineRun, CosRelease, CosSource } from '../cosmicintersection/api/cosmicApi';
|
|
2
|
+
|
|
3
|
+
export declare const WORKSPACE_ID = "ws-test-1";
|
|
4
|
+
type WithTypename<T> = T & {
|
|
5
|
+
__typename: string;
|
|
6
|
+
};
|
|
7
|
+
/** A `Cos*Connection` page: the items plus `{ hasMore, cursor }` page info. */
|
|
8
|
+
export interface FixtureConnection<T> extends CosConnection<T> {
|
|
9
|
+
__typename: string;
|
|
10
|
+
pageInfo: WithTypename<CosPageInfo>;
|
|
11
|
+
}
|
|
12
|
+
export declare function connection<T>(typename: string, items: T[], hasMore?: boolean): FixtureConnection<T>;
|
|
13
|
+
export declare function dataset(overrides?: Partial<CosDataset>): WithTypename<CosDataset>;
|
|
14
|
+
export declare function source(overrides?: Partial<CosSource>): WithTypename<CosSource>;
|
|
15
|
+
export declare function collection(overrides?: Record<string, unknown>): {
|
|
16
|
+
__typename: string;
|
|
17
|
+
id: string;
|
|
18
|
+
workspaceId: string;
|
|
19
|
+
name: string;
|
|
20
|
+
slug: string;
|
|
21
|
+
description: null;
|
|
22
|
+
isPublic: boolean;
|
|
23
|
+
tags: never[];
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
datasets: never[];
|
|
27
|
+
};
|
|
28
|
+
export declare function pipeline(overrides?: Partial<CosPipeline>): WithTypename<CosPipeline>;
|
|
29
|
+
export declare function run(overrides?: Partial<CosPipelineRun>): WithTypename<CosPipelineRun>;
|
|
30
|
+
export declare function notebook(overrides?: Partial<CosNotebook>): WithTypename<CosNotebook>;
|
|
31
|
+
export declare function release(overrides?: Partial<CosRelease>): WithTypename<CosRelease>;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/test/fixtures.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,cAAc,EACd,UAAU,EACV,SAAS,EACV,MAAM,qCAAqC,CAAC;AAE7C,eAAO,MAAM,YAAY,cAAc,CAAC;AAGxC,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,+EAA+E;AAC/E,MAAM,WAAW,iBAAiB,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACrC;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,OAAO,UAAQ,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAMjG;AAED,wBAAgB,OAAO,CAAC,SAAS,GAAE,OAAO,CAAC,UAAU,CAAM,GAAG,YAAY,CAAC,UAAU,CAAC,CAsBrF;AAED,wBAAgB,MAAM,CAAC,SAAS,GAAE,OAAO,CAAC,SAAS,CAAM,GAAG,YAAY,CAAC,SAAS,CAAC,CAiBlF;AAED,wBAAgB,UAAU,CAAC,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;;;;;EAejE;AAED,wBAAgB,QAAQ,CAAC,SAAS,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,YAAY,CAAC,WAAW,CAAC,CAiBxF;AAED,wBAAgB,GAAG,CAAC,SAAS,GAAE,OAAO,CAAC,cAAc,CAAM,GAAG,YAAY,CAAC,cAAc,CAAC,CAkBzF;AAED,wBAAgB,QAAQ,CAAC,SAAS,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,YAAY,CAAC,WAAW,CAAC,CAiBxF;AAED,wBAAgB,OAAO,CAAC,SAAS,GAAE,OAAO,CAAC,UAAU,CAAM,GAAG,YAAY,CAAC,UAAU,CAAC,CAmBrF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApolloClient } from '@apollo/client';
|
|
2
|
+
import { TranslationDictionary } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';
|
|
3
|
+
import { RenderResult } from '@testing-library/react';
|
|
4
|
+
import { ReactElement } from 'react';
|
|
5
|
+
import { Mock } from 'vitest';
|
|
6
|
+
|
|
7
|
+
export interface RenderOptions {
|
|
8
|
+
client?: ApolloClient;
|
|
9
|
+
basePath?: string;
|
|
10
|
+
translations?: TranslationDictionary;
|
|
11
|
+
}
|
|
12
|
+
export interface RenderWithProvidersResult extends RenderResult {
|
|
13
|
+
navigate: Mock<(path: string) => void>;
|
|
14
|
+
}
|
|
15
|
+
export declare function renderWithProviders(ui: ReactElement, options?: RenderOptions): RenderWithProvidersResult;
|
|
16
|
+
//# sourceMappingURL=renderWithProviders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderWithProviders.d.ts","sourceRoot":"","sources":["../../src/test/renderWithProviders.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AACrD,OAAO,EAAM,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAC;AAKvC,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC;AAED,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,QAAQ,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,CAAC;CACxC;AAED,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,YAAY,EAChB,OAAO,GAAE,aAAkB,GAC1B,yBAAyB,CA4B3B"}
|
package/dist/test/setup.d.ts
CHANGED
package/dist/test/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/test/setup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/test/setup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,kCAAkC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-cosmicintersection",
|
|
3
|
-
"version": "2026.1030.
|
|
3
|
+
"version": "2026.1030.4",
|
|
4
4
|
"description": "Burdenoff CosmicIntersection Microfrontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -80,7 +80,9 @@
|
|
|
80
80
|
"@storybook/test-runner": "0.22.0",
|
|
81
81
|
"@tailwindcss/vite": "^4.3.2",
|
|
82
82
|
"@testing-library/dom": "^10.4.2",
|
|
83
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
83
84
|
"@testing-library/react": "^16.3.2",
|
|
85
|
+
"@testing-library/user-event": "^14.6.1",
|
|
84
86
|
"@types/react": "^19.0.2",
|
|
85
87
|
"@types/react-dom": "^19.0.2",
|
|
86
88
|
"@vitejs/plugin-react": "^4.3.4",
|