Skip to content

Commit bced701

Browse files
committed
Updated webpack core
1 parent b6c2ff8 commit bced701

File tree

3 files changed

+45
-41
lines changed

3 files changed

+45
-41
lines changed

cypress/e2e/attack.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { rivalsUI, winFight, stalematedFight, escapedFight } from '../apps/attac
66
context('Attack App', () => {
77
beforeEach(() => {
88
setCookies({ type: 'basic' })
9-
makeLogin({ email: 'maryan060@gmail.com', password: 'period312' }).basic()
9+
makeLogin({ email: 'mar@gmail.com', password: 'per' }).basic()
1010
})
1111

1212
it('check rivals UI', () => {
+42-38
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,58 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`<Body Component Test /> should render basic Body Component with an image 1`] = `
4-
<Component
4+
<Body
55
imageToShow={1}
66
switchImage={[Function]}
77
>
8-
<button
9-
className="button"
10-
onClick={[Function]}
11-
type="button"
8+
<div
9+
className="body"
1210
>
13-
<TransitionGroup
14-
childFactory={[Function]}
15-
className="animWrap"
16-
component="div"
11+
<button
12+
className="button"
13+
onClick={[Function]}
14+
type="button"
1715
>
18-
<div
16+
<TransitionGroup
17+
childFactory={[Function]}
1918
className="animWrap"
19+
component="div"
2020
>
21-
<CSSTransition
22-
classNames="mainImage"
23-
in={true}
24-
key=".$1"
25-
onExited={[Function]}
26-
timeout={500}
21+
<div
22+
className="animWrap"
2723
>
28-
<Transition
29-
appear={false}
30-
enter={true}
31-
exit={true}
24+
<CSSTransition
25+
classNames="mainImage"
3226
in={true}
33-
mountOnEnter={false}
34-
onEnter={[Function]}
35-
onEntered={[Function]}
36-
onEntering={[Function]}
37-
onExit={[Function]}
27+
key=".$1"
3828
onExited={[Function]}
39-
onExiting={[Function]}
4029
timeout={500}
41-
unmountOnExit={false}
4230
>
43-
<img
44-
alt="main_img"
45-
className="bodyImg"
46-
src="../assets/1.png"
47-
/>
48-
</Transition>
49-
</CSSTransition>
50-
</div>
51-
</TransitionGroup>
52-
</button>
53-
</Component>
31+
<Transition
32+
appear={false}
33+
enter={true}
34+
exit={true}
35+
in={true}
36+
mountOnEnter={false}
37+
onEnter={[Function]}
38+
onEntered={[Function]}
39+
onEntering={[Function]}
40+
onExit={[Function]}
41+
onExited={[Function]}
42+
onExiting={[Function]}
43+
timeout={500}
44+
unmountOnExit={false}
45+
>
46+
<img
47+
alt="main_img"
48+
className="bodyImg"
49+
src="../assets/1.png"
50+
/>
51+
</Transition>
52+
</CSSTransition>
53+
</div>
54+
</TransitionGroup>
55+
</button>
56+
</div>
57+
</Body>
5458
`;

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ const rules = [
5555
{
5656
test: /.scss$/,
5757
use: [
58-
{
58+
__DEV__ || __PROD__ ? {
5959
loader: MiniCssExtractPlugin.loader,
6060
options: {
6161
hmr: __DEV__
6262
}
63-
},
63+
} : 'style-loader',
6464
{
6565
loader: 'css-loader',
6666
options: {

0 commit comments

Comments
 (0)