Skip to content

Commit 66a71f8

Browse files
committed
OCPBUGS-79315: expand pf stylemock
pf/react-styles has files in .mjs which import from .css. they were not being transformed by swc, so the css stylemock was not working. now swc will transform those files and the stylemock will work as intended.
1 parent 16e4ccd commit 66a71f8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"transform": {
9191
"get-local-plugins\\.js$": "./scripts/jest-transform-local-plugins.js",
9292
"^.+\\.(gql|graphql)$": "./scripts/jest-transform-graphql.js",
93-
"^.+\\.(ts|tsx|js|jsx)$": [
93+
"^.+\\.(ts|tsx|js|jsx|mjs)$": [
9494
"@swc/jest",
9595
{
9696
"module": {

frontend/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3552,8 +3552,8 @@ __metadata:
35523552
linkType: hard
35533553

35543554
"@patternfly/react-data-view@npm:~6.4.0-prerelease.12":
3555-
version: 6.4.0
3556-
resolution: "@patternfly/react-data-view@npm:6.4.0"
3555+
version: 6.4.0-prerelease.12
3556+
resolution: "@patternfly/react-data-view@npm:6.4.0-prerelease.12"
35573557
dependencies:
35583558
"@patternfly/react-component-groups": "npm:^6.1.0"
35593559
"@patternfly/react-core": "npm:^6.4.0"
@@ -3564,7 +3564,7 @@ __metadata:
35643564
peerDependencies:
35653565
react: ^17 || ^18 || ^19
35663566
react-dom: ^17 || ^18 || ^19
3567-
checksum: 10c0/da60fd99cf0ab51494d42d90c9f87a424f3896a47af8794a2492ca2331c7aadac6b845eae5ed75c3b411b5d1e48facf834eb6a43b0b6e6cdf92297197d2be7ec
3567+
checksum: 10c0/3e563cf3c8bcb468a1e96911582a6998025dfb79d5ab851930ecf16f557b5741f2ba1ab3af4027eba54feb6d8ee54a00e7cb12ac4c1090ee5ecaa032d5f93388
35683568
languageName: node
35693569
linkType: hard
35703570

0 commit comments

Comments
 (0)