@backstage/cli 0.21.1 → 0.21.2-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 +24 -2
- package/dist/cjs/{PackageGraph-5171a7a0.cjs.js → PackageGraph-0d0c51da.cjs.js} +2 -2
- package/dist/cjs/{build-0f6d8537.cjs.js → build-ace0c2f7.cjs.js} +9 -9
- package/dist/cjs/{buildBackend-a6435c07.cjs.js → buildBackend-a2ee5de8.cjs.js} +6 -6
- package/dist/cjs/{buildWorkspace-0bfc1749.cjs.js → buildWorkspace-7a65d74f.cjs.js} +6 -6
- package/dist/cjs/{bump-828c7106.cjs.js → bump-aaac6046.cjs.js} +5 -5
- package/dist/cjs/{clean-ac906586.cjs.js → clean-2338b78d.cjs.js} +3 -3
- package/dist/cjs/{clean-9022327a.cjs.js → clean-94b4e851.cjs.js} +2 -2
- package/dist/cjs/{config-0024efa1.cjs.js → config-44f3d6b1.cjs.js} +3 -3
- package/dist/cjs/{createDistWorkspace-9d21f1c1.cjs.js → createDistWorkspace-8a25a023.cjs.js} +5 -5
- package/dist/cjs/{createPlugin-8998eb11.cjs.js → createPlugin-db7a371d.cjs.js} +4 -4
- package/dist/cjs/{diff-dc30fa2f.cjs.js → diff-b3a30e94.cjs.js} +2 -2
- package/dist/cjs/{docs-f493311c.cjs.js → docs-9ab5dc03.cjs.js} +4 -4
- package/dist/cjs/{fix-1e983187.cjs.js → fix-8af69ac5.cjs.js} +3 -3
- package/dist/cjs/{index-b876ab51.cjs.js → index-3afb36f3.cjs.js} +2 -2
- package/dist/cjs/{index-882e66b6.cjs.js → index-51126e59.cjs.js} +44 -44
- package/dist/cjs/{index-84ac585b.cjs.js → index-9b29e2d3.cjs.js} +9 -9
- package/dist/cjs/{index-2b9df3ce.cjs.js → index-e2fbfd55.cjs.js} +8 -8
- package/dist/cjs/{info-2037d34b.cjs.js → info-cca41696.cjs.js} +3 -3
- package/dist/cjs/{install-b67b5a8c.cjs.js → install-7006a147.cjs.js} +4 -4
- package/dist/cjs/{lint-4796aeda.cjs.js → lint-4725ac4c.cjs.js} +3 -3
- package/dist/cjs/{lint-5cca9c67.cjs.js → lint-6ebdbcfa.cjs.js} +2 -2
- package/dist/cjs/{lint-d492facf.cjs.js → lint-8dc909a0.cjs.js} +3 -3
- package/dist/cjs/{list-deprecations-22086c45.cjs.js → list-deprecations-8f407cae.cjs.js} +3 -3
- package/dist/cjs/{new-b8f4da2f.cjs.js → new-0e9bb515.cjs.js} +4 -4
- package/dist/cjs/{pack-aca85dbb.cjs.js → pack-9144065a.cjs.js} +2 -2
- package/dist/cjs/{packageLintConfigs-0335bef7.cjs.js → packageLintConfigs-250d2a71.cjs.js} +4 -4
- package/dist/cjs/{packageRole-3b9411b0.cjs.js → packageRole-307aa03e.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-abec821e.cjs.js → packageRoles-7d4386db.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-8438459a.cjs.js → packageScripts-426d63b5.cjs.js} +4 -4
- package/dist/cjs/{packages-50de74ed.cjs.js → packages-ae0057b4.cjs.js} +3 -3
- package/dist/cjs/{paths-a9c09204.cjs.js → paths-6085ee40.cjs.js} +15 -13
- package/dist/cjs/{print-2db5d252.cjs.js → print-1abc18c4.cjs.js} +4 -4
- package/dist/cjs/{reactRouterDeps-b591b716.cjs.js → reactRouterDeps-3e4f35c1.cjs.js} +4 -4
- package/dist/cjs/{run-519762e1.cjs.js → run-7bd02a3a.cjs.js} +2 -2
- package/dist/cjs/{schema-f28a4ffc.cjs.js → schema-dc879966.cjs.js} +4 -4
- package/dist/cjs/{tasks-b1102752.cjs.js → tasks-bfb68900.cjs.js} +2 -2
- package/dist/cjs/{test-e3f3b59a.cjs.js → test-3ea4376a.cjs.js} +4 -4
- package/dist/cjs/{test-de9ec880.cjs.js → test-856865b0.cjs.js} +3 -3
- package/dist/cjs/{validate-88236e2f.cjs.js → validate-76d32fcf.cjs.js} +4 -4
- package/dist/index.cjs.js +1 -1
- package/package.json +14 -14
- package/templates/default-backend-plugin/package.json.hbs +1 -1
- package/templates/default-plugin/package.json.hbs +1 -1
- package/templates/default-plugin/src/components/ExampleComponent/ExampleComponent.test.tsx.hbs +3 -2
- package/templates/default-plugin/src/components/ExampleFetchComponent/ExampleFetchComponent.test.tsx.hbs +3 -3
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@backstage/cli": "{{versionQuery '@backstage/cli'}}",
|
|
42
42
|
"@types/supertest": "{{versionQuery '@types/supertest' '2.0.12'}}",
|
|
43
43
|
"supertest": "{{versionQuery 'supertest' '6.2.4'}}",
|
|
44
|
-
"msw": "{{versionQuery 'msw' '0.
|
|
44
|
+
"msw": "{{versionQuery 'msw' '0.49.0'}}"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"dist"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@testing-library/react": "{{versionQuery '@testing-library/react' '12.1.3'}}",
|
|
49
49
|
"@testing-library/user-event": "{{versionQuery '@testing-library/user-event' '14.0.0'}}",
|
|
50
50
|
"@types/node": "{{versionQuery '@types/node' '16.11.26'}}",
|
|
51
|
-
"msw": "{{versionQuery 'msw' '0.
|
|
51
|
+
"msw": "{{versionQuery 'msw' '0.49.0'}}",
|
|
52
52
|
"cross-fetch": "{{versionQuery 'cross-fetch' '3.1.5'}}"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
package/templates/default-plugin/src/components/ExampleComponent/ExampleComponent.test.tsx.hbs
CHANGED
|
@@ -4,6 +4,7 @@ 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 { screen } from '@testing-library/react';
|
|
7
8
|
import {
|
|
8
9
|
setupRequestMockHandlers,
|
|
9
10
|
renderInTestApp,
|
|
@@ -22,11 +23,11 @@ describe('ExampleComponent', () => {
|
|
|
22
23
|
});
|
|
23
24
|
|
|
24
25
|
it('should render', async () => {
|
|
25
|
-
|
|
26
|
+
await renderInTestApp(
|
|
26
27
|
<ThemeProvider theme={lightTheme}>
|
|
27
28
|
<ExampleComponent />
|
|
28
29
|
</ThemeProvider>,
|
|
29
30
|
);
|
|
30
|
-
expect(
|
|
31
|
+
expect(screen.getByText('Welcome to {{ id }}!')).toBeInTheDocument();
|
|
31
32
|
});
|
|
32
33
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import { ExampleFetchComponent } from './ExampleFetchComponent';
|
|
4
4
|
import { rest } from 'msw';
|
|
5
5
|
import { setupServer } from 'msw/node';
|
|
@@ -19,7 +19,7 @@ describe('ExampleFetchComponent', () => {
|
|
|
19
19
|
);
|
|
20
20
|
});
|
|
21
21
|
it('should render', async () => {
|
|
22
|
-
|
|
23
|
-
expect(await
|
|
22
|
+
await render(<ExampleFetchComponent />);
|
|
23
|
+
expect(await screen.findByTestId('progress')).toBeInTheDocument();
|
|
24
24
|
});
|
|
25
25
|
});
|