@backstage/cli 0.25.3-next.0 → 0.25.3-next.2
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 +34 -0
- package/dist/cjs/{build-b047213b.cjs.js → build-8382b8d8.cjs.js} +7 -7
- package/dist/cjs/{buildBackend-9d25d2a3.cjs.js → buildBackend-8dad4184.cjs.js} +6 -6
- package/dist/cjs/{buildWorkspace-a5d563a8.cjs.js → buildWorkspace-65108f13.cjs.js} +4 -4
- package/dist/cjs/{bump-7de1da80.cjs.js → bump-7eb29899.cjs.js} +5 -5
- package/dist/cjs/{clean-81a6e5e8.cjs.js → clean-5afc7d48.cjs.js} +2 -2
- package/dist/cjs/{clean-4b8e1bd6.cjs.js → clean-da51bc11.cjs.js} +2 -2
- package/dist/cjs/{codeowners-8c170e32.cjs.js → codeowners-20b953b3.cjs.js} +2 -2
- package/dist/cjs/{config-81dc6a92.cjs.js → config-56e0de04.cjs.js} +2 -2
- package/dist/cjs/{createDistWorkspace-91828a77.cjs.js → createDistWorkspace-030a024c.cjs.js} +3 -3
- package/dist/cjs/{createPlugin-6e539ab8.cjs.js → createPlugin-204e49d9.cjs.js} +4 -4
- package/dist/cjs/{diff-361c56e5.cjs.js → diff-7d8597da.cjs.js} +2 -2
- package/dist/cjs/{docs-d05bac9f.cjs.js → docs-f78c80fc.cjs.js} +3 -3
- package/dist/cjs/{fix-2f078e4c.cjs.js → fix-d22e0b11.cjs.js} +2 -2
- package/dist/cjs/{index-56496364.cjs.js → index-09d2153b.cjs.js} +8 -8
- package/dist/cjs/{index-7566d34a.cjs.js → index-9063098c.cjs.js} +7 -7
- package/dist/cjs/{index-ee417f1e.cjs.js → index-9544d932.cjs.js} +3 -3
- package/dist/cjs/{index-a9eea02d.cjs.js → index-e1de5c59.cjs.js} +45 -45
- package/dist/cjs/{index-10243df9.cjs.js → index-edd730f9.cjs.js} +2 -2
- package/dist/cjs/{info-81e1b339.cjs.js → info-1f294f45.cjs.js} +3 -3
- package/dist/cjs/{install-9a976123.cjs.js → install-673dc92b.cjs.js} +4 -4
- package/dist/cjs/{lint-93528456.cjs.js → lint-8300340a.cjs.js} +2 -2
- package/dist/cjs/{lint-9b0fc617.cjs.js → lint-b802a7cd.cjs.js} +2 -2
- package/dist/cjs/{lint-8c4d590a.cjs.js → lint-ba008767.cjs.js} +3 -3
- package/dist/cjs/{list-deprecations-55e4bc34.cjs.js → list-deprecations-e2ee5969.cjs.js} +2 -2
- package/dist/cjs/{new-72fbff46.cjs.js → new-c58b4036.cjs.js} +7 -7
- package/dist/cjs/{pack-96287276.cjs.js → pack-50caa243.cjs.js} +2 -2
- package/dist/cjs/{packageDetection-06517dcc.cjs.js → packageDetection-4743318d.cjs.js} +3 -3
- package/dist/cjs/{packageExports-ec2ae448.cjs.js → packageExports-a1441001.cjs.js} +3 -3
- package/dist/cjs/{packageLintConfigs-c78f6393.cjs.js → packageLintConfigs-d64c7abd.cjs.js} +3 -3
- package/dist/cjs/{packageRole-15f6cce1.cjs.js → packageRole-dac636ac.cjs.js} +2 -2
- package/dist/cjs/{packages-1901cd91.cjs.js → packages-6d977cf6.cjs.js} +3 -3
- package/dist/cjs/{print-8bec5b17.cjs.js → print-6b92e96e.cjs.js} +3 -3
- package/dist/cjs/{role-22840269.cjs.js → role-a4d0fea7.cjs.js} +2 -2
- package/dist/cjs/{run-7d1cbb7a.cjs.js → run-d7eebc11.cjs.js} +2 -2
- package/dist/cjs/{schema-9eadf360.cjs.js → schema-4835d534.cjs.js} +3 -3
- package/dist/cjs/{test-11c93a91.cjs.js → test-5db6618e.cjs.js} +3 -3
- package/dist/cjs/{test-16b2ccfa.cjs.js → test-7743a73f.cjs.js} +3 -3
- package/dist/cjs/{validate-c24a06d3.cjs.js → validate-beb5d30e.cjs.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/package.json +13 -13
- package/templates/default-backend-module/src/module.ts.hbs +5 -2
- package/templates/default-common-plugin-package/src/index.ts.hbs +3 -3
- package/templates/default-plugin/dev/index.tsx.hbs +1 -1
- package/templates/default-plugin/src/components/ExampleComponent/ExampleComponent.test.tsx.hbs +4 -2
- package/templates/default-plugin/src/components/ExampleFetchComponent/ExampleFetchComponent.test.tsx.hbs +2 -2
- package/templates/default-plugin/src/components/ExampleFetchComponent/ExampleFetchComponent.tsx.hbs +170 -165
- package/templates/default-plugin/src/plugin.ts.hbs +4 -1
- package/templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.test.tsx +4 -4
- package/templates/default-react-plugin-package/src/hooks/useExample/useExample.ts +1 -1
- package/templates/default-react-plugin-package/src/index.ts.hbs +2 -2
- package/templates/serve_index.html +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var config = require('./config-
|
|
3
|
+
var config = require('./config-56e0de04.cjs.js');
|
|
4
4
|
require('@backstage/config-loader');
|
|
5
5
|
require('@backstage/config');
|
|
6
|
-
require('./index-
|
|
6
|
+
require('./index-e1de5c59.cjs.js');
|
|
7
7
|
require('commander');
|
|
8
8
|
require('chalk');
|
|
9
9
|
require('fs-extra');
|
|
@@ -25,4 +25,4 @@ var validate = async (opts) => {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
exports["default"] = validate;
|
|
28
|
-
//# sourceMappingURL=validate-
|
|
28
|
+
//# sourceMappingURL=validate-beb5d30e.cjs.js.map
|
package/dist/index.cjs.js
CHANGED
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.25.3-next.
|
|
4
|
+
"version": "0.25.3-next.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@backstage/catalog-model": "^1.4.5-next.0",
|
|
34
34
|
"@backstage/cli-common": "^0.1.13",
|
|
35
35
|
"@backstage/cli-node": "^0.2.4-next.0",
|
|
36
|
-
"@backstage/config": "^1.
|
|
37
|
-
"@backstage/config-loader": "^1.
|
|
36
|
+
"@backstage/config": "^1.2.0-next.1",
|
|
37
|
+
"@backstage/config-loader": "^1.7.0-next.1",
|
|
38
38
|
"@backstage/errors": "^1.2.4-next.0",
|
|
39
39
|
"@backstage/eslint-plugin": "^0.1.6-next.0",
|
|
40
|
-
"@backstage/integration": "^1.9.1-next.
|
|
40
|
+
"@backstage/integration": "^1.9.1-next.2",
|
|
41
41
|
"@backstage/release-manifests": "^0.0.11",
|
|
42
42
|
"@backstage/types": "^1.1.1",
|
|
43
43
|
"@manypkg/get-packages": "^1.1.3",
|
|
@@ -141,15 +141,15 @@
|
|
|
141
141
|
"zod": "^3.22.4"
|
|
142
142
|
},
|
|
143
143
|
"devDependencies": {
|
|
144
|
-
"@backstage/backend-common": "^0.21.
|
|
145
|
-
"@backstage/backend-plugin-api": "^0.6.
|
|
146
|
-
"@backstage/backend-test-utils": "^0.3.
|
|
147
|
-
"@backstage/config": "^1.
|
|
148
|
-
"@backstage/core-app-api": "^1.12.1-next.
|
|
149
|
-
"@backstage/core-components": "^0.14.1-next.
|
|
150
|
-
"@backstage/core-plugin-api": "^1.9.1-next.
|
|
151
|
-
"@backstage/dev-utils": "^1.0.28-next.
|
|
152
|
-
"@backstage/test-utils": "^1.5.1-next.
|
|
144
|
+
"@backstage/backend-common": "^0.21.4-next.2",
|
|
145
|
+
"@backstage/backend-plugin-api": "^0.6.14-next.2",
|
|
146
|
+
"@backstage/backend-test-utils": "^0.3.4-next.2",
|
|
147
|
+
"@backstage/config": "^1.2.0-next.1",
|
|
148
|
+
"@backstage/core-app-api": "^1.12.1-next.1",
|
|
149
|
+
"@backstage/core-components": "^0.14.1-next.2",
|
|
150
|
+
"@backstage/core-plugin-api": "^1.9.1-next.1",
|
|
151
|
+
"@backstage/dev-utils": "^1.0.28-next.2",
|
|
152
|
+
"@backstage/test-utils": "^1.5.1-next.1",
|
|
153
153
|
"@backstage/theme": "^0.5.2-next.0",
|
|
154
154
|
"@types/cross-spawn": "^6.0.2",
|
|
155
155
|
"@types/diff": "^5.0.0",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
coreServices,
|
|
3
|
+
createBackendModule,
|
|
4
|
+
} from '@backstage/backend-plugin-api';
|
|
2
5
|
|
|
3
6
|
export const {{moduleVar}} = createBackendModule({
|
|
4
7
|
pluginId: '{{pluginId}}',
|
|
@@ -7,7 +10,7 @@ export const {{moduleVar}} = createBackendModule({
|
|
|
7
10
|
reg.registerInit({
|
|
8
11
|
deps: { logger: coreServices.logger },
|
|
9
12
|
async init({ logger }) {
|
|
10
|
-
logger.info('Hello World!')
|
|
13
|
+
logger.info('Hello World!');
|
|
11
14
|
},
|
|
12
15
|
});
|
|
13
16
|
},
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* between the frontend and backend plugin packages.
|
|
11
11
|
*/
|
|
12
12
|
export type CommonType = {
|
|
13
|
-
field: string
|
|
14
|
-
}
|
|
13
|
+
field: string;
|
|
14
|
+
};
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Or you might declare some common constants.
|
|
18
18
|
*/
|
|
19
|
-
export const COMMON_CONSTANT = 1
|
|
19
|
+
export const COMMON_CONSTANT = 1;
|
package/templates/default-plugin/src/components/ExampleComponent/ExampleComponent.test.tsx.hbs
CHANGED
|
@@ -6,7 +6,7 @@ import { screen } from '@testing-library/react';
|
|
|
6
6
|
import {
|
|
7
7
|
setupRequestMockHandlers,
|
|
8
8
|
renderInTestApp,
|
|
9
|
-
} from
|
|
9
|
+
} from '@backstage/test-utils';
|
|
10
10
|
|
|
11
11
|
describe('ExampleComponent', () => {
|
|
12
12
|
const server = setupServer();
|
|
@@ -22,6 +22,8 @@ describe('ExampleComponent', () => {
|
|
|
22
22
|
|
|
23
23
|
it('should render', async () => {
|
|
24
24
|
await renderInTestApp(<ExampleComponent />);
|
|
25
|
-
expect(
|
|
25
|
+
expect(
|
|
26
|
+
screen.getByText('Welcome to {{ id }}!'),
|
|
27
|
+
).toBeInTheDocument();
|
|
26
28
|
});
|
|
27
29
|
});
|
|
@@ -8,7 +8,7 @@ describe('ExampleFetchComponent', () => {
|
|
|
8
8
|
|
|
9
9
|
// Wait for the table to render
|
|
10
10
|
const table = await screen.findByRole('table');
|
|
11
|
-
const nationality = screen.getAllByText(
|
|
11
|
+
const nationality = screen.getAllByText('GB')
|
|
12
12
|
// Assert that the table contains the expected user data
|
|
13
13
|
expect(table).toBeInTheDocument();
|
|
14
14
|
expect(screen.getByAltText('Carolyn')).toBeInTheDocument();
|
|
@@ -16,4 +16,4 @@ describe('ExampleFetchComponent', () => {
|
|
|
16
16
|
expect(screen.getByText('carolyn.moore@example.com')).toBeInTheDocument();
|
|
17
17
|
expect(nationality[0]).toBeInTheDocument();
|
|
18
18
|
});
|
|
19
|
-
});
|
|
19
|
+
});
|
package/templates/default-plugin/src/components/ExampleFetchComponent/ExampleFetchComponent.tsx.hbs
CHANGED
|
@@ -1,232 +1,237 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { makeStyles } from '@material-ui/core/styles';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Table,
|
|
5
|
+
TableColumn,
|
|
6
|
+
Progress,
|
|
7
|
+
ResponseErrorPanel,
|
|
8
|
+
} from '@backstage/core-components';
|
|
4
9
|
import useAsync from 'react-use/lib/useAsync';
|
|
5
10
|
|
|
6
11
|
export const exampleUsers = {
|
|
7
|
-
|
|
12
|
+
results: [
|
|
8
13
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
gender: 'female',
|
|
15
|
+
name: {
|
|
16
|
+
title: 'Miss',
|
|
17
|
+
first: 'Carolyn',
|
|
18
|
+
last: 'Moore',
|
|
14
19
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
email: 'carolyn.moore@example.com',
|
|
21
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Carolyn',
|
|
22
|
+
nat: 'GB',
|
|
18
23
|
},
|
|
19
24
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
gender: 'female',
|
|
26
|
+
name: {
|
|
27
|
+
title: 'Ms',
|
|
28
|
+
first: 'Esma',
|
|
29
|
+
last: 'Berberoğlu',
|
|
25
30
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
email: 'esma.berberoglu@example.com',
|
|
32
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Esma',
|
|
33
|
+
nat: 'TR',
|
|
29
34
|
},
|
|
30
35
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
gender: 'female',
|
|
37
|
+
name: {
|
|
38
|
+
title: 'Ms',
|
|
39
|
+
first: 'Isabella',
|
|
40
|
+
last: 'Rhodes',
|
|
36
41
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
email: 'isabella.rhodes@example.com',
|
|
43
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Isabella',
|
|
44
|
+
nat: 'GB',
|
|
40
45
|
},
|
|
41
46
|
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
gender: 'male',
|
|
48
|
+
name: {
|
|
49
|
+
title: 'Mr',
|
|
50
|
+
first: 'Derrick',
|
|
51
|
+
last: 'Carter',
|
|
47
52
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
email: 'derrick.carter@example.com',
|
|
54
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Derrick',
|
|
55
|
+
nat: 'IE',
|
|
51
56
|
},
|
|
52
57
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
gender: 'female',
|
|
59
|
+
name: {
|
|
60
|
+
title: 'Miss',
|
|
61
|
+
first: 'Mattie',
|
|
62
|
+
last: 'Lambert',
|
|
58
63
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
email: 'mattie.lambert@example.com',
|
|
65
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Mattie',
|
|
66
|
+
nat: 'AU',
|
|
62
67
|
},
|
|
63
68
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
gender: 'male',
|
|
70
|
+
name: {
|
|
71
|
+
title: 'Mr',
|
|
72
|
+
first: 'Mijat',
|
|
73
|
+
last: 'Rakić',
|
|
69
74
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
75
|
+
email: 'mijat.rakic@example.com',
|
|
76
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Mijat',
|
|
77
|
+
nat: 'RS',
|
|
73
78
|
},
|
|
74
79
|
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
gender: 'male',
|
|
81
|
+
name: {
|
|
82
|
+
title: 'Mr',
|
|
83
|
+
first: 'Javier',
|
|
84
|
+
last: 'Reid',
|
|
80
85
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
86
|
+
email: 'javier.reid@example.com',
|
|
87
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Javier',
|
|
88
|
+
nat: 'US',
|
|
84
89
|
},
|
|
85
90
|
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
gender: 'female',
|
|
92
|
+
name: {
|
|
93
|
+
title: 'Ms',
|
|
94
|
+
first: 'Isabella',
|
|
95
|
+
last: 'Li',
|
|
91
96
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
email: 'isabella.li@example.com',
|
|
98
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Isabella',
|
|
99
|
+
nat: 'CA',
|
|
95
100
|
},
|
|
96
101
|
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
gender: 'female',
|
|
103
|
+
name: {
|
|
104
|
+
title: 'Mrs',
|
|
105
|
+
first: 'Stephanie',
|
|
106
|
+
last: 'Garrett',
|
|
102
107
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
email: 'stephanie.garrett@example.com',
|
|
109
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Stephanie',
|
|
110
|
+
nat: 'AU',
|
|
106
111
|
},
|
|
107
112
|
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
gender: 'female',
|
|
114
|
+
name: {
|
|
115
|
+
title: 'Ms',
|
|
116
|
+
first: 'Antonia',
|
|
117
|
+
last: 'Núñez',
|
|
113
118
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
119
|
+
email: 'antonia.nunez@example.com',
|
|
120
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Antonia',
|
|
121
|
+
nat: 'ES',
|
|
117
122
|
},
|
|
118
123
|
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
gender: 'male',
|
|
125
|
+
name: {
|
|
126
|
+
title: 'Mr',
|
|
127
|
+
first: 'Donald',
|
|
128
|
+
last: 'Young',
|
|
124
129
|
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
email: 'donald.young@example.com',
|
|
131
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Donald',
|
|
132
|
+
nat: 'US',
|
|
128
133
|
},
|
|
129
134
|
{
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
gender: 'male',
|
|
136
|
+
name: {
|
|
137
|
+
title: 'Mr',
|
|
138
|
+
first: 'Iegor',
|
|
139
|
+
last: 'Holodovskiy',
|
|
135
140
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
email: 'iegor.holodovskiy@example.com',
|
|
142
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Iegor',
|
|
143
|
+
nat: 'UA',
|
|
139
144
|
},
|
|
140
145
|
{
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
gender: 'female',
|
|
147
|
+
name: {
|
|
148
|
+
title: 'Madame',
|
|
149
|
+
first: 'Jessica',
|
|
150
|
+
last: 'David',
|
|
146
151
|
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
152
|
+
email: 'jessica.david@example.com',
|
|
153
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Jessica',
|
|
154
|
+
nat: 'CH',
|
|
150
155
|
},
|
|
151
156
|
{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
gender: 'female',
|
|
158
|
+
name: {
|
|
159
|
+
title: 'Ms',
|
|
160
|
+
first: 'Eve',
|
|
161
|
+
last: 'Martinez',
|
|
157
162
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
163
|
+
email: 'eve.martinez@example.com',
|
|
164
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Eve',
|
|
165
|
+
nat: 'FR',
|
|
161
166
|
},
|
|
162
167
|
{
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
gender: 'male',
|
|
169
|
+
name: {
|
|
170
|
+
title: 'Mr',
|
|
171
|
+
first: 'Caleb',
|
|
172
|
+
last: 'Silva',
|
|
168
173
|
},
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
174
|
+
email: 'caleb.silva@example.com',
|
|
175
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Caleb',
|
|
176
|
+
nat: 'US',
|
|
172
177
|
},
|
|
173
178
|
{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
gender: 'female',
|
|
180
|
+
name: {
|
|
181
|
+
title: 'Miss',
|
|
182
|
+
first: 'Marcia',
|
|
183
|
+
last: 'Jenkins',
|
|
179
184
|
},
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
email: 'marcia.jenkins@example.com',
|
|
186
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Marcia',
|
|
187
|
+
nat: 'US',
|
|
183
188
|
},
|
|
184
189
|
{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
gender: 'female',
|
|
191
|
+
name: {
|
|
192
|
+
title: 'Mrs',
|
|
193
|
+
first: 'Mackenzie',
|
|
194
|
+
last: 'Jones',
|
|
190
195
|
},
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
email: 'mackenzie.jones@example.com',
|
|
197
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Mackenzie',
|
|
198
|
+
nat: 'NZ',
|
|
194
199
|
},
|
|
195
200
|
{
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
gender: 'male',
|
|
202
|
+
name: {
|
|
203
|
+
title: 'Mr',
|
|
204
|
+
first: 'Jeremiah',
|
|
205
|
+
last: 'Gutierrez',
|
|
201
206
|
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
email: 'jeremiah.gutierrez@example.com',
|
|
208
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Jeremiah',
|
|
209
|
+
nat: 'AU',
|
|
205
210
|
},
|
|
206
211
|
{
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
+
gender: 'female',
|
|
213
|
+
name: {
|
|
214
|
+
title: 'Ms',
|
|
215
|
+
first: 'Luciara',
|
|
216
|
+
last: 'Souza',
|
|
212
217
|
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
email: 'luciara.souza@example.com',
|
|
219
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Luciara',
|
|
220
|
+
nat: 'BR',
|
|
216
221
|
},
|
|
217
222
|
{
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
+
gender: 'male',
|
|
224
|
+
name: {
|
|
225
|
+
title: 'Mr',
|
|
226
|
+
first: 'Valgi',
|
|
227
|
+
last: 'da Cunha',
|
|
223
228
|
},
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
]
|
|
229
|
-
}
|
|
229
|
+
email: 'valgi.dacunha@example.com',
|
|
230
|
+
picture: 'https://api.dicebear.com/6.x/open-peeps/svg?seed=Valgi',
|
|
231
|
+
nat: 'BR',
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
};
|
|
230
235
|
|
|
231
236
|
const useStyles = makeStyles({
|
|
232
237
|
avatar: {
|
|
@@ -5,14 +5,14 @@ import { ExampleComponent } from './ExampleComponent';
|
|
|
5
5
|
|
|
6
6
|
describe('ExampleComponent', () => {
|
|
7
7
|
it('should render', async () => {
|
|
8
|
-
await renderInTestApp(<ExampleComponent />)
|
|
8
|
+
await renderInTestApp(<ExampleComponent />);
|
|
9
9
|
|
|
10
10
|
expect(screen.getByText('Hello World')).toBeInTheDocument();
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
it('should display a custom message', async () => {
|
|
14
|
-
await renderInTestApp(<ExampleComponent message=
|
|
14
|
+
await renderInTestApp(<ExampleComponent message="Hello Example" />);
|
|
15
15
|
|
|
16
16
|
expect(screen.getByText('Hello Example')).toBeInTheDocument();
|
|
17
|
-
})
|
|
18
|
-
})
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="theme-color" content="#000000" />
|
|
7
7
|
<meta
|
|
8
8
|
name="description"
|
|
9
|
-
content="Backstage is an open
|
|
9
|
+
content="Backstage is an open source framework for building developer portals"
|
|
10
10
|
/>
|
|
11
11
|
<title>Backstage</title>
|
|
12
12
|
</head>
|