File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 "@backstage/e2e-test-utils" : " ^0.1.2" ,
5151 "@backstage/repo-tools" : " ^0.17.0" ,
5252 "@changesets/cli" : " ^2.27.1" ,
53+ "@jest/environment-jsdom-abstract" : " ^30.3.0" ,
5354 "@playwright/test" : " 1.58.2" ,
55+ "@types/jest" : " ^30.0.0" ,
56+ "@types/jsdom" : " ^27.0.0" ,
57+ "jest" : " ^30.3.0" ,
58+ "jsdom" : " ^27.1.0" ,
5459 "knip" : " ^5.27.4" ,
5560 "node-gyp" : " ^9.0.0" ,
5661 "prettier" : " ^2.3.2" ,
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright Red Hat, Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ // Node 25+ removed SlowBuffer from the buffer module.
18+ // Transitive deps (buffer-equal-constant-time via jsonwebtoken) still reference it.
19+ const bufferModule = require ( 'node:buffer' ) ;
20+
21+ if ( ! bufferModule . SlowBuffer ) {
22+ bufferModule . SlowBuffer = bufferModule . Buffer ;
23+ }
Original file line number Diff line number Diff line change 1111 "backstage" : {
1212 "role" : " frontend"
1313 },
14+ "jest" : {
15+ "setupFiles" : [
16+ " <rootDir>/../jest.setup.js"
17+ ]
18+ },
1419 "scripts" : {
1520 "start" : " backstage-cli package start" ,
1621 "build" : " backstage-cli package build" ,
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright Red Hat, Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ // Node 25+ removed SlowBuffer from the buffer module.
18+ // Transitive deps (buffer-equal-constant-time via jsonwebtoken) still reference it.
19+ const bufferModule = require ( 'node:buffer' ) ;
20+
21+ if ( ! bufferModule . SlowBuffer ) {
22+ bufferModule . SlowBuffer = bufferModule . Buffer ;
23+ }
Original file line number Diff line number Diff line change 1111 "backstage" : {
1212 "role" : " frontend"
1313 },
14+ "jest" : {
15+ "setupFiles" : [
16+ " <rootDir>/../jest.setup.js"
17+ ]
18+ },
1419 "scripts" : {
1520 "start" : " backstage-cli package start" ,
1621 "build" : " backstage-cli package build" ,
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ describe('HelpDropdown', () => {
297297
298298 const button = screen . getByRole ( 'button' ) ;
299299 expect ( button ) . toHaveStyle ( 'margin-left: 16px' ) ;
300- expect ( button ) . toHaveStyle ( 'color: red ' ) ;
300+ expect ( button ) . toHaveStyle ( 'color: rgb(255, 0, 0) ' ) ;
301301 } ) ;
302302
303303 it ( 'processes mount point configurations correctly' , async ( ) => {
You can’t perform that action at this time.
0 commit comments