Skip to content

Commit 46a666e

Browse files
authored
chore(extensions): migrate to Jest 30 (#3010)
Install Jest 30 peer dependencies as required by @backstage/cli 0.36.0 and fix test incompatibilities for Jest 30 and JSDOM 27. Resolves: https://redhat.atlassian.net/browse/RHDHBUGS-3064 Signed-off-by: Jon Koops <jonkoops@gmail.com>
1 parent 15f78e7 commit 46a666e

3 files changed

Lines changed: 2215 additions & 126 deletions

File tree

workspaces/extensions/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@
4848
"@backstage/e2e-test-utils": "^0.1.2",
4949
"@backstage/repo-tools": "^0.17.0",
5050
"@changesets/cli": "^2.27.1",
51+
"@jest/environment-jsdom-abstract": "^30.3.0",
5152
"@playwright/test": "1.58.2",
53+
"@types/jest": "^30.0.0",
54+
"@types/jsdom": "^27.0.0",
55+
"jest": "^30.3.0",
56+
"jsdom": "^27.1.0",
5257
"knip": "^5.27.4",
5358
"minimatch": "3",
5459
"node-gyp": "^9.0.0",

workspaces/extensions/plugins/extensions/src/components/PluginIcon.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('PluginIcon', () => {
4040
const { getByRole } = render(<PluginIcon plugin={testPlugin} size={40} />);
4141
expect(getByRole('img')).toBeInTheDocument();
4242
expect(getByRole('img').style.backgroundImage).toEqual(
43-
'url(https://backstage.io/icons/test-plugin.png)',
43+
'url("https://backstage.io/icons/test-plugin.png")',
4444
);
4545
});
4646

0 commit comments

Comments
 (0)