Skip to content

Commit a8dbd59

Browse files
authored
Merge pull request #3353 from Jatin24062005/Jatin-Issue-#3280
Passing All the Test inside Docker.
2 parents 9037972 + 802dd57 commit a8dbd59

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.babelrc

+14
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@
6262
}
6363
]
6464
]
65+
},
66+
"test": {
67+
"presets": [
68+
"@babel/preset-env",
69+
[
70+
"@babel/preset-react",
71+
{
72+
"runtime": "automatic"
73+
}
74+
]
75+
],
76+
"plugins": [
77+
"babel-plugin-styled-components"
78+
]
6579
}
6680
},
6781
"plugins": [

client/modules/IDE/components/Header/__snapshots__/Nav.unit.test.jsx.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ exports[`Nav renders dashboard version for mobile 1`] = `
211211
-ms-flex-direction: column;
212212
flex-direction: column;
213213
gap: 0.16666666666666666rem;
214-
box-shadow: rgba(60,64,67,0.3) 0px 1px 2px 0px, rgba(60,64,67,0.15) 0px 1px 3px 1px;
214+
box-shadow: rgba(60,64,67,0.3) 0px 1px 2px 0px,rgba(60,64,67,0.15) 0px 1px 3px 1px;
215215
min-width: 10rem;
216216
border-radius: 0.16666666666666666rem;
217217
}
@@ -324,7 +324,7 @@ exports[`Nav renders dashboard version for mobile 1`] = `
324324
>
325325
<test-file-stub
326326
aria-hidden="true"
327-
classname="sc-fujyAs cSTVlM"
327+
classname="icons__StyledIcon-sc-xmer15-0 dStXqm"
328328
focusable="false"
329329
/>
330330
</button>
@@ -340,7 +340,7 @@ exports[`Nav renders dashboard version for mobile 1`] = `
340340
>
341341
<test-file-stub
342342
aria-hidden="true"
343-
classname="sc-iqAclL iOZiVo"
343+
classname="icons__StyledIcon-sc-xmer15-0 dStXqm"
344344
focusable="false"
345345
/>
346346
</button>
@@ -912,7 +912,7 @@ exports[`Nav renders editor version for mobile 1`] = `
912912
-ms-flex-direction: column;
913913
flex-direction: column;
914914
gap: 0.16666666666666666rem;
915-
box-shadow: rgba(60,64,67,0.3) 0px 1px 2px 0px, rgba(60,64,67,0.15) 0px 1px 3px 1px;
915+
box-shadow: rgba(60,64,67,0.3) 0px 1px 2px 0px,rgba(60,64,67,0.15) 0px 1px 3px 1px;
916916
min-width: 10rem;
917917
border-radius: 0.16666666666666666rem;
918918
}
@@ -1025,7 +1025,7 @@ exports[`Nav renders editor version for mobile 1`] = `
10251025
>
10261026
<test-file-stub
10271027
aria-hidden="true"
1028-
classname="sc-fujyAs cSTVlM"
1028+
classname="icons__StyledIcon-sc-xmer15-0 dStXqm"
10291029
focusable="false"
10301030
/>
10311031
</button>
@@ -1041,7 +1041,7 @@ exports[`Nav renders editor version for mobile 1`] = `
10411041
>
10421042
<test-file-stub
10431043
aria-hidden="true"
1044-
classname="sc-iqAclL iOZiVo"
1044+
classname="icons__StyledIcon-sc-xmer15-0 dStXqm"
10451045
focusable="false"
10461046
/>
10471047
</button>

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build:client": "cross-env NODE_ENV=production webpack --config webpack/config.prod.js",
1313
"build:server": "cross-env NODE_ENV=production webpack --config webpack/config.server.js",
1414
"build:examples": "cross-env NODE_ENV=production webpack --config webpack/config.examples.js",
15-
"test": "jest",
15+
"test": "NODE_ENV=test jest",
1616
"test:ci": "npm run lint && npm run test",
1717
"fetch-examples": "cross-env NODE_ENV=development node ./server/scripts/fetch-examples.js",
1818
"fetch-examples-gg": "cross-env NODE_ENV=development node ./server/scripts/fetch-examples-gg.js",
@@ -111,7 +111,9 @@
111111
"@testing-library/jest-dom": "^5.15.0",
112112
"@testing-library/react": "^12.1.2",
113113
"babel-core": "^7.0.0-bridge.0",
114+
"babel-jest": "^29.7.0",
114115
"babel-loader": "^8.2.5",
116+
"babel-plugin-styled-components": "^2.1.4",
115117
"babel-plugin-transform-react-remove-prop-types": "^0.2.12",
116118
"css-loader": "^5.2.7",
117119
"css-minimizer-webpack-plugin": "^3.4.1",

0 commit comments

Comments
 (0)