@sprucelabs/spruce-test-fixtures 46.0.26 → 46.0.27

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.
@@ -704,8 +704,12 @@ function fakeInstallEvents(Class) {
704
704
  const namespaces = payload === null || payload === void 0 ? void 0 : payload.namespaces;
705
705
  const matches = Class.fakedSkills.filter((s) => { var _a; return ((_a = namespaces === null || namespaces === void 0 ? void 0 : namespaces.indexOf(s.slug)) !== null && _a !== void 0 ? _a : 0) > -1; });
706
706
  if (matches.length === 0) {
707
- //@ts-ignore
708
- throw new SpruceError({ code: 'INVALID_NAMESPACES', namespaces });
707
+ throw new SpruceError({
708
+ //@ts-ignore
709
+ code: 'INVALID_NAMESPACES',
710
+ namespaces,
711
+ friendlyMessage: 'I could not find the skills by the namespaces you passed!',
712
+ });
709
713
  }
710
714
  return {
711
715
  skills: matches.map((m) => {
@@ -651,8 +651,12 @@ async function fakeInstallEvents(Class) {
651
651
  const namespaces = payload === null || payload === void 0 ? void 0 : payload.namespaces;
652
652
  const matches = Class.fakedSkills.filter((s) => { var _a; return ((_a = namespaces === null || namespaces === void 0 ? void 0 : namespaces.indexOf(s.slug)) !== null && _a !== void 0 ? _a : 0) > -1; });
653
653
  if (matches.length === 0) {
654
- //@ts-ignore
655
- throw new SpruceError_1.default({ code: 'INVALID_NAMESPACES', namespaces });
654
+ throw new SpruceError_1.default({
655
+ //@ts-ignore
656
+ code: 'INVALID_NAMESPACES',
657
+ namespaces,
658
+ friendlyMessage: 'I could not find the skills by the namespaces you passed!',
659
+ });
656
660
  }
657
661
  return {
658
662
  skills: matches.map((m) => {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "@sprucelabs/spruce-test-fixtures"
14
14
  ]
15
15
  },
16
- "version": "46.0.26",
16
+ "version": "46.0.27",
17
17
  "files": [
18
18
  "build/**/*",
19
19
  "!build/__tests__",
@@ -71,7 +71,7 @@
71
71
  "@sprucelabs/schema": "^28.4.12",
72
72
  "@sprucelabs/spruce-core-schemas": "^34.2.44",
73
73
  "@sprucelabs/spruce-event-utils": "^27.0.115",
74
- "@sprucelabs/spruce-skill-booter": "^46.0.26",
74
+ "@sprucelabs/spruce-skill-booter": "^46.0.27",
75
75
  "@sprucelabs/spruce-skill-utils": "^26.4.18",
76
76
  "dotenv": "^16.0.1",
77
77
  "unique-names-generator": "^4.7.1"
@@ -131,5 +131,5 @@
131
131
  ]
132
132
  ]
133
133
  },
134
- "gitHead": "31c0b2e007c61ff0882775ccec8824cc6c09e052"
134
+ "gitHead": "06c4b794d646614a49f1c73946238f6a6c8e87dd"
135
135
  }