frontend-app-api: fix changed-package lint regressions
Declare the new frontend test dependencies, avoid the finalize options shadowing lint error, and add explicit assertions in frontend-test-utils so the changed-package lint jobs pass again. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -43,6 +43,8 @@
|
||||
"@backstage/cli": "workspace:^",
|
||||
"@backstage/core-plugin-api": "workspace:^",
|
||||
"@backstage/plugin-app-react": "workspace:^",
|
||||
"@backstage/plugin-permission-common": "workspace:^",
|
||||
"@backstage/plugin-permission-react": "workspace:^",
|
||||
"@backstage/test-utils": "workspace:^",
|
||||
"@testing-library/jest-dom": "^6.0.0",
|
||||
"@testing-library/react": "^16.0.0",
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
"@backstage/config": "workspace:^",
|
||||
"@backstage/core-app-api": "workspace:^",
|
||||
"@backstage/core-plugin-api": "workspace:^",
|
||||
"@backstage/filter-predicates": "workspace:^",
|
||||
"@backstage/frontend-app-api": "workspace:^",
|
||||
"@backstage/frontend-plugin-api": "workspace:^",
|
||||
"@backstage/plugin-app": "workspace:^",
|
||||
|
||||
@@ -38,6 +38,8 @@ describe('TestApiProvider', () => {
|
||||
<div />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
expect(document.body).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should allow partial API implementations', () => {
|
||||
@@ -46,6 +48,8 @@ describe('TestApiProvider', () => {
|
||||
<div />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
expect(document.body).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should reject mismatched types in tuple syntax', () => {
|
||||
@@ -55,6 +59,8 @@ describe('TestApiProvider', () => {
|
||||
<div />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
expect(document.body).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should accept MockWithApiFactory entries', () => {
|
||||
@@ -63,6 +69,8 @@ describe('TestApiProvider', () => {
|
||||
<div />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
expect(document.body).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should accept a mix of tuples and MockWithApiFactory entries', () => {
|
||||
@@ -71,6 +79,8 @@ describe('TestApiProvider', () => {
|
||||
<div />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
expect(document.body).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should allow empty APIs', () => {
|
||||
@@ -79,6 +89,8 @@ describe('TestApiProvider', () => {
|
||||
<div />
|
||||
</TestApiProvider>,
|
||||
);
|
||||
|
||||
expect(document.body).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should provide APIs at runtime', async () => {
|
||||
|
||||
@@ -3670,6 +3670,8 @@ __metadata:
|
||||
"@backstage/frontend-plugin-api": "workspace:^"
|
||||
"@backstage/plugin-app": "workspace:^"
|
||||
"@backstage/plugin-app-react": "workspace:^"
|
||||
"@backstage/plugin-permission-common": "workspace:^"
|
||||
"@backstage/plugin-permission-react": "workspace:^"
|
||||
"@backstage/test-utils": "workspace:^"
|
||||
"@react-hookz/web": "npm:^24.0.0"
|
||||
"@testing-library/jest-dom": "npm:^6.0.0"
|
||||
@@ -3789,6 +3791,7 @@ __metadata:
|
||||
"@backstage/config": "workspace:^"
|
||||
"@backstage/core-app-api": "workspace:^"
|
||||
"@backstage/core-plugin-api": "workspace:^"
|
||||
"@backstage/filter-predicates": "workspace:^"
|
||||
"@backstage/frontend-app-api": "workspace:^"
|
||||
"@backstage/frontend-plugin-api": "workspace:^"
|
||||
"@backstage/plugin-app": "workspace:^"
|
||||
|
||||
Reference in New Issue
Block a user