@backstage/test-utils 1.4.2 → 1.4.3-next.1
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 +26 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @backstage/test-utils
|
|
2
2
|
|
|
3
|
+
## 1.4.3-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/config@1.1.0-next.0
|
|
9
|
+
- @backstage/core-app-api@1.10.0-next.1
|
|
10
|
+
- @backstage/core-plugin-api@1.6.0-next.1
|
|
11
|
+
- @backstage/plugin-permission-common@0.7.8-next.0
|
|
12
|
+
- @backstage/plugin-permission-react@0.4.15-next.1
|
|
13
|
+
- @backstage/theme@0.4.1
|
|
14
|
+
- @backstage/types@1.1.0
|
|
15
|
+
|
|
16
|
+
## 1.4.3-next.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @backstage/core-app-api@1.10.0-next.0
|
|
22
|
+
- @backstage/core-plugin-api@1.6.0-next.0
|
|
23
|
+
- @backstage/config@1.0.8
|
|
24
|
+
- @backstage/theme@0.4.1
|
|
25
|
+
- @backstage/types@1.1.0
|
|
26
|
+
- @backstage/plugin-permission-common@0.7.7
|
|
27
|
+
- @backstage/plugin-permission-react@0.4.15-next.0
|
|
28
|
+
|
|
3
29
|
## 1.4.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Mock for PluginProvider to use in unit tests
|
|
5
5
|
* @alpha
|
|
6
6
|
*/
|
|
7
|
-
declare const MockPluginProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
|
|
7
|
+
declare const MockPluginProvider: ({ children }: PropsWithChildren<{}>) => React.JSX.Element;
|
|
8
8
|
|
|
9
9
|
export { MockPluginProvider };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { JsonObject, JsonValue, Observable } from '@backstage/types';
|
|
|
4
4
|
import crossFetch from 'cross-fetch';
|
|
5
5
|
import { PermissionApi } from '@backstage/plugin-permission-react';
|
|
6
6
|
import { EvaluatePermissionRequest, AuthorizeResult, EvaluatePermissionResponse } from '@backstage/plugin-permission-common';
|
|
7
|
-
import { ReactNode, ComponentType, ReactElement } from 'react';
|
|
7
|
+
import React, { ReactNode, ComponentType, ReactElement } from 'react';
|
|
8
8
|
import { RenderResult, MatcherFunction, RenderOptions } from '@testing-library/react';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -470,6 +470,6 @@ declare class TestApiRegistry implements ApiHolder {
|
|
|
470
470
|
*
|
|
471
471
|
* @public
|
|
472
472
|
*/
|
|
473
|
-
declare const TestApiProvider: <T extends any[]>(props: TestApiProviderProps<T>) => JSX.Element;
|
|
473
|
+
declare const TestApiProvider: <T extends any[]>(props: TestApiProviderProps<T>) => React.JSX.Element;
|
|
474
474
|
|
|
475
475
|
export { AsyncLogCollector, CollectedLogs, ErrorWithContext, LogCollector, LogFuncs, MockAnalyticsApi, MockConfigApi, MockErrorApi, MockErrorApiOptions, MockFetchApi, MockFetchApiOptions, MockPermissionApi, MockStorageApi, MockStorageBucket, SyncLogCollector, TestApiProvider, TestApiProviderProps, TestApiRegistry, TestAppOptions, createTestAppWrapper, mockBreakpoint, renderInTestApp, renderWithEffects, setupRequestMockHandlers, textContentMatcher, withLogCollector, wrapInTestApp };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/test-utils",
|
|
3
3
|
"description": "Utilities to test Backstage plugins and apps.",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3-next.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"start": "backstage-cli package start"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@backstage/config": "^1.0.
|
|
47
|
-
"@backstage/core-app-api": "^1.
|
|
48
|
-
"@backstage/core-plugin-api": "^1.
|
|
49
|
-
"@backstage/plugin-permission-common": "^0.7.
|
|
50
|
-
"@backstage/plugin-permission-react": "^0.4.
|
|
46
|
+
"@backstage/config": "^1.1.0-next.0",
|
|
47
|
+
"@backstage/core-app-api": "^1.10.0-next.1",
|
|
48
|
+
"@backstage/core-plugin-api": "^1.6.0-next.1",
|
|
49
|
+
"@backstage/plugin-permission-common": "^0.7.8-next.0",
|
|
50
|
+
"@backstage/plugin-permission-react": "^0.4.15-next.1",
|
|
51
51
|
"@backstage/theme": "^0.4.1",
|
|
52
52
|
"@backstage/types": "^1.1.0",
|
|
53
53
|
"@material-ui/core": "^4.12.2",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@backstage/cli": "^0.22.
|
|
69
|
+
"@backstage/cli": "^0.22.13-next.1",
|
|
70
70
|
"@types/node": "^16.11.26",
|
|
71
71
|
"msw": "^1.0.0"
|
|
72
72
|
},
|