Skip to content

Commit

Permalink
fix: update backstage from 1.22.0 to 1.22.1 (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Jan 22, 2024
1 parent 7357bb2 commit 851a033
Show file tree
Hide file tree
Showing 5 changed files with 4,164 additions and 4,840 deletions.
2 changes: 1 addition & 1 deletion backstage.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.22.0"
"version": "1.22.1"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"typescript": "~5.3.3"
},
"resolutions": {
"@types/react": "^17",
"@types/react-dom": "^17"
"@types/react": "^18",
"@types/react-dom": "^18"
},
"prettier": "@spotify/prettier-config",
"lint-staged": {
Expand Down
8 changes: 5 additions & 3 deletions packages/app/src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { renderWithEffects } from '@backstage/test-utils';
import { render, waitFor } from '@testing-library/react';
import App from './App';

describe('App', () => {
Expand All @@ -20,7 +20,9 @@ describe('App', () => {
] as any,
};

const rendered = await renderWithEffects(<App />);
expect(rendered.baseElement).toBeInTheDocument();
const rendered = render(<App />);
await waitFor(() => {
expect(rendered.baseElement).toBeInTheDocument();
});
});
});
4 changes: 2 additions & 2 deletions packages/app/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '@backstage/cli/asset-types';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOM from 'react-dom/client';
import App from './App';

ReactDOM.render(<App />, document.getElementById('root'));
ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
Loading

0 comments on commit 851a033

Please sign in to comment.