@backstage/test-utils 1.7.5 → 1.7.6-next.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @backstage/test-utils
2
2
 
3
+ ## 1.7.6-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 37c6510: Moved `@types/jest` to `devDependencies`.
8
+ - Updated dependencies
9
+ - @backstage/core-app-api@1.16.0-next.0
10
+ - @backstage/config@1.3.2
11
+ - @backstage/core-plugin-api@1.10.4
12
+ - @backstage/theme@0.6.4
13
+ - @backstage/types@1.2.1
14
+ - @backstage/plugin-permission-common@0.8.4
15
+ - @backstage/plugin-permission-react@0.4.31
16
+
3
17
  ## 1.7.5
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="jest" />
2
1
  import { AnalyticsApi, AnalyticsEvent, ConfigApi, ErrorApiError, ErrorApiErrorContext, ErrorApi, DiscoveryApi, IdentityApi, FetchApi, StorageApi, StorageValueSnapshot, ApiFactory, RouteRef, ExternalRouteRef, AppComponents, IconComponent, ApiHolder, ApiRef } from '@backstage/core-plugin-api';
3
2
  import * as _backstage_config from '@backstage/config';
4
3
  import { Config } from '@backstage/config';
@@ -346,7 +345,7 @@ declare namespace mockApis {
346
345
  * @public
347
346
  */
348
347
  const factory: (options?: {
349
- data?: JsonObject | undefined;
348
+ data?: JsonObject;
350
349
  } | undefined) => ApiFactory<_backstage_config.Config, _backstage_config.Config, {}>;
351
350
  /**
352
351
  * Creates a mock implementation of
@@ -374,7 +373,7 @@ declare namespace mockApis {
374
373
  */
375
374
  namespace discovery {
376
375
  const factory: (options?: {
377
- baseUrl?: string | undefined;
376
+ baseUrl?: string;
378
377
  } | undefined) => ApiFactory<DiscoveryApi, DiscoveryApi, {}>;
379
378
  const mock: (partialImpl?: Partial<DiscoveryApi> | undefined) => ApiMock<DiscoveryApi>;
380
379
  }
@@ -399,12 +398,12 @@ declare namespace mockApis {
399
398
  */
400
399
  namespace identity {
401
400
  const factory: (options?: {
402
- userEntityRef?: string | undefined;
403
- ownershipEntityRefs?: string[] | undefined;
404
- token?: string | undefined;
405
- email?: string | undefined;
406
- displayName?: string | undefined;
407
- picture?: string | undefined;
401
+ userEntityRef?: string;
402
+ ownershipEntityRefs?: string[];
403
+ token?: string;
404
+ email?: string;
405
+ displayName?: string;
406
+ picture?: string;
408
407
  } | undefined) => ApiFactory<IdentityApi, IdentityApi, {}>;
409
408
  const mock: (partialImpl?: Partial<IdentityApi> | undefined) => ApiMock<IdentityApi>;
410
409
  }
@@ -426,7 +425,7 @@ declare namespace mockApis {
426
425
  */
427
426
  namespace permission {
428
427
  const factory: (options?: {
429
- authorize?: AuthorizeResult.DENY | AuthorizeResult.ALLOW | ((request: EvaluatePermissionRequest) => AuthorizeResult.DENY | AuthorizeResult.ALLOW) | undefined;
428
+ authorize?: AuthorizeResult.ALLOW | AuthorizeResult.DENY | ((request: EvaluatePermissionRequest) => AuthorizeResult.ALLOW | AuthorizeResult.DENY);
430
429
  } | undefined) => ApiFactory<PermissionApi, PermissionApi, {}>;
431
430
  const mock: (partialImpl?: Partial<PermissionApi> | undefined) => ApiMock<PermissionApi>;
432
431
  }
@@ -446,7 +445,7 @@ declare namespace mockApis {
446
445
  */
447
446
  namespace storage {
448
447
  const factory: (options?: {
449
- data?: JsonObject | undefined;
448
+ data?: JsonObject;
450
449
  } | undefined) => ApiFactory<StorageApi, StorageApi, {}>;
451
450
  const mock: (partialImpl?: Partial<StorageApi> | undefined) => ApiMock<StorageApi>;
452
451
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/test-utils",
3
- "version": "1.7.5",
3
+ "version": "1.7.6-next.0",
4
4
  "description": "Utilities to test Backstage plugins and apps.",
5
5
  "backstage": {
6
6
  "role": "web-library"
@@ -36,7 +36,7 @@
36
36
  "types": "./dist/index.d.ts",
37
37
  "typesVersions": {
38
38
  "*": {
39
- "index": [
39
+ "*": [
40
40
  "dist/index.d.ts"
41
41
  ],
42
42
  "alpha": [
@@ -57,13 +57,13 @@
57
57
  "test": "backstage-cli package test"
58
58
  },
59
59
  "dependencies": {
60
- "@backstage/config": "^1.3.2",
61
- "@backstage/core-app-api": "^1.15.5",
62
- "@backstage/core-plugin-api": "^1.10.4",
63
- "@backstage/plugin-permission-common": "^0.8.4",
64
- "@backstage/plugin-permission-react": "^0.4.31",
65
- "@backstage/theme": "^0.6.4",
66
- "@backstage/types": "^1.2.1",
60
+ "@backstage/config": "1.3.2",
61
+ "@backstage/core-app-api": "1.16.0-next.0",
62
+ "@backstage/core-plugin-api": "1.10.4",
63
+ "@backstage/plugin-permission-common": "0.8.4",
64
+ "@backstage/plugin-permission-react": "0.4.31",
65
+ "@backstage/theme": "0.6.4",
66
+ "@backstage/types": "1.2.1",
67
67
  "@material-ui/core": "^4.12.2",
68
68
  "@material-ui/icons": "^4.9.1",
69
69
  "cross-fetch": "^4.0.0",
@@ -71,7 +71,7 @@
71
71
  "zen-observable": "^0.10.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@backstage/cli": "^0.30.0",
74
+ "@backstage/cli": "0.31.0-next.1",
75
75
  "@testing-library/jest-dom": "^6.0.0",
76
76
  "@types/jest": "*",
77
77
  "@types/react": "^18.0.0",
@@ -82,16 +82,12 @@
82
82
  },
83
83
  "peerDependencies": {
84
84
  "@testing-library/react": "^16.0.0",
85
- "@types/jest": "*",
86
85
  "@types/react": "^17.0.0 || ^18.0.0",
87
86
  "react": "^17.0.0 || ^18.0.0",
88
87
  "react-dom": "^17.0.0 || ^18.0.0",
89
88
  "react-router-dom": "^6.3.0"
90
89
  },
91
90
  "peerDependenciesMeta": {
92
- "@types/jest": {
93
- "optional": true
94
- },
95
91
  "@types/react": {
96
92
  "optional": true
97
93
  }