@backstage/test-utils 1.2.5 → 1.2.6-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 +29 -0
- package/README.md +1 -1
- package/alpha/package.json +4 -3
- package/dist/alpha.d.ts +9 -0
- package/dist/alpha.esm.js +16 -0
- package/dist/alpha.esm.js.map +1 -0
- package/dist/index.d.ts +208 -255
- package/dist/index.esm.js +2 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +28 -17
- package/dist/index.alpha.d.ts +0 -526
- package/dist/index.beta.d.ts +0 -522
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @backstage/test-utils
|
|
2
2
|
|
|
3
|
+
## 1.2.6-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
|
|
8
|
+
- 482dae5de1c: Updated link to docs.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/core-app-api@1.5.1-next.1
|
|
11
|
+
- @backstage/core-plugin-api@1.4.1-next.1
|
|
12
|
+
- @backstage/plugin-permission-common@0.7.4-next.0
|
|
13
|
+
- @backstage/config@1.0.7-next.0
|
|
14
|
+
- @backstage/theme@0.2.18-next.0
|
|
15
|
+
- @backstage/types@1.0.2
|
|
16
|
+
- @backstage/plugin-permission-react@0.4.11-next.1
|
|
17
|
+
|
|
18
|
+
## 1.2.6-next.0
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 928a12a9b3: Internal refactor of `/alpha` exports.
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @backstage/core-plugin-api@1.4.1-next.0
|
|
25
|
+
- @backstage/config@1.0.6
|
|
26
|
+
- @backstage/core-app-api@1.5.1-next.0
|
|
27
|
+
- @backstage/theme@0.2.17
|
|
28
|
+
- @backstage/types@1.0.2
|
|
29
|
+
- @backstage/plugin-permission-common@0.7.3
|
|
30
|
+
- @backstage/plugin-permission-react@0.4.11-next.0
|
|
31
|
+
|
|
3
32
|
## 1.2.5
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -14,4 +14,4 @@ yarn add -D @backstage/test-utils
|
|
|
14
14
|
## Documentation
|
|
15
15
|
|
|
16
16
|
- [Backstage Readme](https://github.com/backstage/backstage/blob/master/README.md)
|
|
17
|
-
- [Backstage Documentation](https://
|
|
17
|
+
- [Backstage Documentation](https://backstage.io/docs)
|
package/alpha/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/test-utils",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"main": "../dist/
|
|
5
|
-
"
|
|
3
|
+
"version": "1.2.6-next.1",
|
|
4
|
+
"main": "../dist/alpha.esm.js",
|
|
5
|
+
"module": "../dist/alpha.esm.js",
|
|
6
|
+
"types": "../dist/alpha.d.ts"
|
|
6
7
|
}
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PluginProvider } from '@backstage/core-plugin-api/alpha';
|
|
3
|
+
import { createPlugin } from '@backstage/core-plugin-api';
|
|
4
|
+
|
|
5
|
+
const MockPluginProvider = ({ children }) => {
|
|
6
|
+
const plugin = createPlugin({
|
|
7
|
+
id: "my-plugin",
|
|
8
|
+
__experimentalConfigure(_) {
|
|
9
|
+
return {};
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
return /* @__PURE__ */ React.createElement(PluginProvider, { plugin }, children);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { MockPluginProvider };
|
|
16
|
+
//# sourceMappingURL=alpha.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/testUtils/MockPluginProvider.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { PropsWithChildren } from 'react';\nimport { PluginProvider } from '@backstage/core-plugin-api/alpha';\nimport { createPlugin } from '@backstage/core-plugin-api';\n\n/**\n * Mock for PluginProvider to use in unit tests\n * @alpha\n */\nexport const MockPluginProvider = ({ children }: PropsWithChildren<{}>) => {\n type TestInputPluginOptions = {};\n type TestPluginOptions = {};\n const plugin = createPlugin({\n id: 'my-plugin',\n __experimentalConfigure(_: TestInputPluginOptions): TestPluginOptions {\n return {};\n },\n });\n\n return <PluginProvider plugin={plugin}>{children}</PluginProvider>;\n};\n"],"names":[],"mappings":";;;;AAwBO,MAAM,kBAAqB,GAAA,CAAC,EAAE,QAAA,EAAsC,KAAA;AAGzE,EAAA,MAAM,SAAS,YAAa,CAAA;AAAA,IAC1B,EAAI,EAAA,WAAA;AAAA,IACJ,wBAAwB,CAA8C,EAAA;AACpE,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,GACD,CAAA,CAAA;AAED,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,cAAe,EAAA,EAAA,MAAA,EAAA,EAAiB,QAAS,CAAA,CAAA;AACnD;;;;"}
|