@sprucelabs/spruce-templates 21.0.13 → 21.0.15

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.
@@ -1,9 +1,9 @@
1
- import { fake } from '@sprucelabs/spruce-test-fixtures'
1
+ {{#if isTestFixturesInstalled}}import { fake } from '@sprucelabs/spruce-test-fixtures'{{/if}}
2
2
  import {{#unless (isDefined parentTestClass)}}AbstractSpruceTest, {{/unless}}{ test, assert } from '@sprucelabs/test-utils'
3
3
  {{#if (isDefined parentTestClass)}}import {{#if parentTestClass.isDefaultExport}}{{parentTestClass.name}}{{else}}{ {{parentTestClass.name}} }{{/if}} from '{{parentTestClass.importPath}}'
4
4
  {{/if}}
5
5
 
6
- @fake.login()
6
+ {{#if isTestFixturesInstalled}}@fake.login(){{/if}}
7
7
  export default class {{namePascal}}Test extends {{#if (isDefined parentTestClass)}}{{parentTestClass.name}}{{else}}AbstractSpruceTest{{/if}} {
8
8
  @test()
9
9
  protected static async canCreate{{namePascal}}() {
@@ -60,6 +60,7 @@ export type ValueTypes = Record<string, Record<string, Record<string, Record<str
60
60
  export interface TestOptions {
61
61
  namePascal: string;
62
62
  nameCamel: string;
63
+ isTestFixturesInstalled: boolean;
63
64
  parentTestClass?: {
64
65
  name: string;
65
66
  importPath: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "21.0.13",
6
+ "version": "21.0.15",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "tsconfig.json",
@@ -56,10 +56,10 @@
56
56
  "watch.tsc": "tsc -w"
57
57
  },
58
58
  "dependencies": {
59
- "@sprucelabs/mercury-types": "^47.0.41",
60
- "@sprucelabs/schema": "^30.0.42",
61
- "@sprucelabs/spruce-event-utils": "^40.0.43",
62
- "@sprucelabs/spruce-skill-utils": "^31.0.45",
59
+ "@sprucelabs/mercury-types": "^47.0.46",
60
+ "@sprucelabs/schema": "^30.0.46",
61
+ "@sprucelabs/spruce-event-utils": "^40.0.47",
62
+ "@sprucelabs/spruce-skill-utils": "^31.0.49",
63
63
  "fs-extra": "^11.2.0",
64
64
  "handlebars": "^4.7.8",
65
65
  "lodash": "^4.17.21",
@@ -68,7 +68,7 @@
68
68
  "devDependencies": {
69
69
  "@types/fs-extra": "^11.0.4",
70
70
  "@types/lodash": "^4.17.1",
71
- "@types/node": "^20.12.11",
71
+ "@types/node": "^20.12.12",
72
72
  "chokidar-cli": "^3.0.0",
73
73
  "concurrently": "^8.2.2",
74
74
  "conventional-changelog-sprucelabs": "^2.0.1",
@@ -78,5 +78,5 @@
78
78
  "yarn-upgrade-all": {
79
79
  "ignore": []
80
80
  },
81
- "gitHead": "c3e3b01f0e4e2cc6f70de5035ef21dd89a87b43b"
81
+ "gitHead": "266337927cccd506ed5caac1314d1fa6161fb760"
82
82
  }