@backstage/cli 0.0.0-nightly-202192322437 → 0.0.0-nightly-202192722215
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,14 +1,16 @@
|
|
|
1
1
|
# @backstage/cli
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-202192722215
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- f1e96dc5b1: Update usage of msw in default plugin template
|
|
7
8
|
- 10615525f3: Switch to use the json and observable types from `@backstage/types`
|
|
8
9
|
- Updated dependencies
|
|
9
|
-
- @backstage/config
|
|
10
|
-
- @backstage/
|
|
11
|
-
- @backstage/config@0.0.0-nightly-
|
|
10
|
+
- @backstage/config@0.0.0-nightly-202192722215
|
|
11
|
+
- @backstage/cli-common@0.0.0-nightly-202192722215
|
|
12
|
+
- @backstage/config-loader@0.0.0-nightly-202192722215
|
|
13
|
+
- @backstage/errors@0.0.0-nightly-202192722215
|
|
12
14
|
|
|
13
15
|
## 0.8.0
|
|
14
16
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/cli",
|
|
3
3
|
"description": "CLI for developing Backstage plugins and apps",
|
|
4
|
-
"version": "0.0.0-nightly-
|
|
4
|
+
"version": "0.0.0-nightly-202192722215",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"backstage-cli": "bin/backstage-cli"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@backstage/cli-common": "^0.
|
|
32
|
-
"@backstage/config": "^0.0.0-nightly-
|
|
33
|
-
"@backstage/config-loader": "^0.0.0-nightly-
|
|
34
|
-
"@backstage/errors": "^0.0.0-nightly-
|
|
31
|
+
"@backstage/cli-common": "^0.0.0-nightly-202192722215",
|
|
32
|
+
"@backstage/config": "^0.0.0-nightly-202192722215",
|
|
33
|
+
"@backstage/config-loader": "^0.0.0-nightly-202192722215",
|
|
34
|
+
"@backstage/errors": "^0.0.0-nightly-202192722215",
|
|
35
35
|
"@backstage/types": "^0.1.1",
|
|
36
36
|
"@hot-loader/react-dom": "^16.13.0",
|
|
37
37
|
"@lerna/package-graph": "^4.0.0",
|
|
@@ -110,20 +110,20 @@
|
|
|
110
110
|
"typescript": "^4.0.3",
|
|
111
111
|
"util": "^0.12.3",
|
|
112
112
|
"webpack": "^5.48.0",
|
|
113
|
-
"webpack-dev-server": "4.
|
|
113
|
+
"webpack-dev-server": "4.3.1",
|
|
114
114
|
"webpack-node-externals": "^3.0.0",
|
|
115
115
|
"yaml": "^1.10.0",
|
|
116
116
|
"yml-loader": "^2.1.0",
|
|
117
117
|
"yn": "^4.0.0"
|
|
118
118
|
},
|
|
119
119
|
"devDependencies": {
|
|
120
|
-
"@backstage/backend-common": "^0.0.0-nightly-
|
|
121
|
-
"@backstage/config": "^0.0.0-nightly-
|
|
122
|
-
"@backstage/core-components": "^0.
|
|
123
|
-
"@backstage/core-plugin-api": "^0.0.0-nightly-
|
|
124
|
-
"@backstage/core-app-api": "^0.0.0-nightly-
|
|
120
|
+
"@backstage/backend-common": "^0.0.0-nightly-202192722215",
|
|
121
|
+
"@backstage/config": "^0.0.0-nightly-202192722215",
|
|
122
|
+
"@backstage/core-components": "^0.0.0-nightly-202192722215",
|
|
123
|
+
"@backstage/core-plugin-api": "^0.0.0-nightly-202192722215",
|
|
124
|
+
"@backstage/core-app-api": "^0.0.0-nightly-202192722215",
|
|
125
125
|
"@backstage/dev-utils": "^0.2.12",
|
|
126
|
-
"@backstage/test-utils": "^0.0.0-nightly-
|
|
126
|
+
"@backstage/test-utils": "^0.0.0-nightly-202192722215",
|
|
127
127
|
"@backstage/theme": "^0.2.11",
|
|
128
128
|
"@types/diff": "^5.0.0",
|
|
129
129
|
"@types/express": "^4.17.6",
|
package/templates/default-plugin/src/components/ExampleComponent/ExampleComponent.test.tsx.hbs
CHANGED
|
@@ -4,12 +4,15 @@ import { ThemeProvider } from '@material-ui/core';
|
|
|
4
4
|
import { lightTheme } from '@backstage/theme';
|
|
5
5
|
import { rest } from 'msw';
|
|
6
6
|
import { setupServer } from 'msw/node';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
setupRequestMockHandlers,
|
|
9
|
+
renderInTestApp,
|
|
10
|
+
} from "@backstage/test-utils";
|
|
8
11
|
|
|
9
12
|
describe('ExampleComponent', () => {
|
|
10
13
|
const server = setupServer();
|
|
11
14
|
// Enable sane handlers for network requests
|
|
12
|
-
|
|
15
|
+
setupRequestMockHandlers(server);
|
|
13
16
|
|
|
14
17
|
// setup mock response
|
|
15
18
|
beforeEach(() => {
|
|
@@ -3,12 +3,12 @@ import { render } from '@testing-library/react';
|
|
|
3
3
|
import { ExampleFetchComponent } from './ExampleFetchComponent';
|
|
4
4
|
import { rest } from 'msw';
|
|
5
5
|
import { setupServer } from 'msw/node';
|
|
6
|
-
import {
|
|
6
|
+
import { setupRequestMockHandlers } from '@backstage/test-utils';
|
|
7
7
|
|
|
8
8
|
describe('ExampleFetchComponent', () => {
|
|
9
9
|
const server = setupServer();
|
|
10
10
|
// Enable sane handlers for network requests
|
|
11
|
-
|
|
11
|
+
setupRequestMockHandlers(server);
|
|
12
12
|
|
|
13
13
|
// setup mock response
|
|
14
14
|
beforeEach(() => {
|