Skip to content

Commit a58f426

Browse files
authored
chore(quickstart): migrate to Jest 30 (#3018)
Install Jest 30 peer dependencies as required by @backstage/cli 0.36.0 and fix test incompatibilities for Jest 30 and JSDOM 27. Signed-off-by: Jon Koops <jonkoops@gmail.com>
1 parent ba8920f commit a58f426

3 files changed

Lines changed: 2209 additions & 147 deletions

File tree

workspaces/quickstart/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@
4747
"@backstage/e2e-test-utils": "^0.1.2",
4848
"@backstage/repo-tools": "^0.17.0",
4949
"@changesets/cli": "^2.27.1",
50+
"@jest/environment-jsdom-abstract": "^30.3.0",
5051
"@playwright/test": "1.58.2",
52+
"@types/jest": "^30.0.0",
53+
"@types/jsdom": "^27.0.0",
54+
"jest": "^30.3.0",
55+
"jsdom": "^27.1.0",
5156
"knip": "^5.27.4",
5257
"node-gyp": "^9.0.0",
5358
"prettier": "^2.3.2",

workspaces/quickstart/plugins/quickstart/src/components/QuickstartButton/QuickstartButton.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ describe('QuickstartButton', () => {
148148
);
149149

150150
const button = screen.getByTestId('quickstart-button');
151-
expect(button).toHaveStyle('background-color: red');
151+
expect(button).toHaveStyle('background-color: rgb(255, 0, 0)');
152152
});
153153
});

0 commit comments

Comments
 (0)