@sprucelabs/spruce-test-fixtures 62.4.41 → 62.4.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,7 +62,9 @@ export default class ViewFixture {
62
62
  load<Svc extends SkillViewController = SkillViewController>(vc: Pick<Svc, 'load' | 'getScope'>, args?: ArgsFromSvc<Svc>): Promise<void>;
63
63
  getThemes(): import("../FakeThemeManager").default;
64
64
  hasApp(namespace: string): boolean;
65
- App(namespace: AppControllerId): never;
65
+ App<Id extends AppControllerId>(namespace: Id): import("@sprucelabs/heartwood-view-controllers").AppControllerMap[Id] & {
66
+ id: Id;
67
+ };
66
68
  private assertScopeRequirementsMet;
67
69
  setScope(scope: Scope): void;
68
70
  getScope(): SpyScope;
@@ -123,7 +123,7 @@ class ViewFixture {
123
123
  //@ts-ignore
124
124
  formAssert._setVcFactory(this.vcFactory);
125
125
  if (App) {
126
- this.vcFactory.importControllers([], undefined, App);
126
+ this.vcFactory.setAppController(App);
127
127
  }
128
128
  const oldFactory = this.vcFactory.Controller.bind(this.vcFactory);
129
129
  this.vcFactory.Controller = (...args) => {
@@ -62,7 +62,9 @@ export default class ViewFixture {
62
62
  load<Svc extends SkillViewController = SkillViewController>(vc: Pick<Svc, 'load' | 'getScope'>, args?: ArgsFromSvc<Svc>): Promise<void>;
63
63
  getThemes(): import("../FakeThemeManager").default;
64
64
  hasApp(namespace: string): boolean;
65
- App(namespace: AppControllerId): never;
65
+ App<Id extends AppControllerId>(namespace: Id): import("@sprucelabs/heartwood-view-controllers").AppControllerMap[Id] & {
66
+ id: Id;
67
+ };
66
68
  private assertScopeRequirementsMet;
67
69
  setScope(scope: Scope): void;
68
70
  getScope(): SpyScope;
@@ -121,7 +121,7 @@ class ViewFixture {
121
121
  //@ts-ignore
122
122
  heartwood_view_controllers_1.formAssert._setVcFactory(this.vcFactory);
123
123
  if (App) {
124
- this.vcFactory.importControllers([], undefined, App);
124
+ this.vcFactory.setAppController(App);
125
125
  }
126
126
  const oldFactory = this.vcFactory.Controller.bind(this.vcFactory);
127
127
  this.vcFactory.Controller = (...args) => {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "@sprucelabs/spruce-test-fixtures"
14
14
  ]
15
15
  },
16
- "version": "62.4.41",
16
+ "version": "62.4.43",
17
17
  "files": [
18
18
  "build/**/*",
19
19
  "!build/__tests__",
@@ -63,15 +63,15 @@
63
63
  "dependencies": {
64
64
  "@sprucelabs/data-stores": "^28.3.223",
65
65
  "@sprucelabs/error": "^6.0.543",
66
- "@sprucelabs/heartwood-view-controllers": "^111.1.49",
66
+ "@sprucelabs/heartwood-view-controllers": "^111.1.50",
67
67
  "@sprucelabs/mercury-client": "^42.0.612",
68
68
  "@sprucelabs/mercury-core-events": "^25.0.57",
69
69
  "@sprucelabs/mercury-event-emitter": "^42.0.612",
70
70
  "@sprucelabs/schema": "^30.0.566",
71
71
  "@sprucelabs/spruce-core-schemas": "^40.1.553",
72
72
  "@sprucelabs/spruce-event-utils": "^40.1.329",
73
- "@sprucelabs/spruce-permission-utils": "^8.1.36",
74
- "@sprucelabs/spruce-skill-booter": "^62.4.41",
73
+ "@sprucelabs/spruce-permission-utils": "^8.1.37",
74
+ "@sprucelabs/spruce-skill-booter": "^62.4.43",
75
75
  "@sprucelabs/spruce-skill-utils": "^31.0.630",
76
76
  "@sprucelabs/test-utils": "^5.1.507",
77
77
  "dotenv": "^16.4.5",
@@ -114,5 +114,5 @@
114
114
  "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
115
115
  }
116
116
  },
117
- "gitHead": "68d0d51c82a067db24f4856f83158c34a06b3dfe"
117
+ "gitHead": "4a20255698df2b1eed445b4192c2886df9a7baba"
118
118
  }