@equinor/fusion-framework-vitest-plugin-react-app 1.0.5 → 1.0.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.
@@ -78,11 +78,20 @@ export interface RenderAppHookResult<Result, Props, TModules extends Array<AnyMo
78
78
  * await vi.waitFor(() => expect(result.current.pending).toBe(false));
79
79
  * ```
80
80
  *
81
- * @example Sign in a named user
81
+ * @example Acquire a token for a named user
82
82
  * ```tsx
83
- * const { result } = await renderAppHook(() => useCurrentAccount(), {
84
- * configure: (configurator) => configurator.msal.setAccount({ name: 'Ada Lovelace' }),
83
+ * const { result } = await renderAppHook(() => useAccessToken({ scopes: ['User.Read'] }), {
84
+ * configure: (configurator) =>
85
+ * configurator.msal.setAcquireToken(({ clientId, scopes }) =>
86
+ * createMockToken({
87
+ * aud: clientId,
88
+ * scp: scopes.join(' '),
89
+ * name: 'Ada Lovelace',
90
+ * oid: 'ada-lovelace',
91
+ * }),
92
+ * ),
85
93
  * });
94
+ * await vi.waitFor(() => expect(result.current.pending).toBe(false));
86
95
  * ```
87
96
  *
88
97
  * @example Reuse a pre-built parent Fusion instance
@@ -1 +1 @@
1
- export declare const version = "1.0.5";
1
+ export declare const version = "1.0.7";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-vitest-plugin-react-app",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Vite plugin resolving an application's manifest, config, and module-configurator as virtual modules for testing.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -50,23 +50,23 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@equinor/fusion-framework": "8.1.3",
53
+ "@equinor/fusion-framework": "9.0.0",
54
+ "@equinor/fusion-framework-app": "13.1.6",
54
55
  "@equinor/fusion-framework-module": "6.1.4",
55
- "@equinor/fusion-framework-cli": "15.3.5",
56
56
  "@equinor/fusion-framework-module-app": "8.2.0",
57
- "@equinor/fusion-framework-app": "13.1.4",
58
- "@equinor/fusion-framework-module-navigation": "7.0.10",
59
57
  "@equinor/fusion-framework-module-feature-flag": "2.1.1",
60
- "@equinor/fusion-framework-module-telemetry": "7.1.1",
61
- "@equinor/fusion-framework-react": "9.0.1",
62
- "@equinor/fusion-framework-react-module": "4.0.4",
63
- "@equinor/fusion-imports": "2.0.4"
58
+ "@equinor/fusion-framework-cli": "15.4.0",
59
+ "@equinor/fusion-framework-module-navigation": "7.0.10",
60
+ "@equinor/fusion-framework-module-telemetry": "7.1.2",
61
+ "@equinor/fusion-framework-react": "9.0.2",
62
+ "@equinor/fusion-imports": "2.0.4",
63
+ "@equinor/fusion-framework-react-module": "4.0.4"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/react": "^19.2.7",
67
67
  "@types/react-dom": "^19.2.3",
68
68
  "@vitest/browser-playwright": "^4.1.0",
69
- "playwright": "^1.62.1",
69
+ "playwright": "^1.63.0",
70
70
  "react": "^19.2.1",
71
71
  "react-dom": "^19.2.1",
72
72
  "rxjs": "^7.8.1",