Skip to content

Commit

Permalink
Updated webpack core
Browse files Browse the repository at this point in the history
  • Loading branch information
BiosBoy committed Jun 29, 2020
1 parent b6c2ff8 commit bced701
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 41 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/attack.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { rivalsUI, winFight, stalematedFight, escapedFight } from '../apps/attac
context('Attack App', () => {
beforeEach(() => {
setCookies({ type: 'basic' })
makeLogin({ email: 'maryan060@gmail.com', password: 'period312' }).basic()
makeLogin({ email: 'mar@gmail.com', password: 'per' }).basic()
})

it('check rivals UI', () => {
Expand Down
80 changes: 42 additions & 38 deletions src/__tests__/__snapshots__/body.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,54 +1,58 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<Body Component Test /> should render basic Body Component with an image 1`] = `
<Component
<Body
imageToShow={1}
switchImage={[Function]}
>
<button
className="button"
onClick={[Function]}
type="button"
<div
className="body"
>
<TransitionGroup
childFactory={[Function]}
className="animWrap"
component="div"
<button
className="button"
onClick={[Function]}
type="button"
>
<div
<TransitionGroup
childFactory={[Function]}
className="animWrap"
component="div"
>
<CSSTransition
classNames="mainImage"
in={true}
key=".$1"
onExited={[Function]}
timeout={500}
<div
className="animWrap"
>
<Transition
appear={false}
enter={true}
exit={true}
<CSSTransition
classNames="mainImage"
in={true}
mountOnEnter={false}
onEnter={[Function]}
onEntered={[Function]}
onEntering={[Function]}
onExit={[Function]}
key=".$1"
onExited={[Function]}
onExiting={[Function]}
timeout={500}
unmountOnExit={false}
>
<img
alt="main_img"
className="bodyImg"
src="../assets/1.png"
/>
</Transition>
</CSSTransition>
</div>
</TransitionGroup>
</button>
</Component>
<Transition
appear={false}
enter={true}
exit={true}
in={true}
mountOnEnter={false}
onEnter={[Function]}
onEntered={[Function]}
onEntering={[Function]}
onExit={[Function]}
onExited={[Function]}
onExiting={[Function]}
timeout={500}
unmountOnExit={false}
>
<img
alt="main_img"
className="bodyImg"
src="../assets/1.png"
/>
</Transition>
</CSSTransition>
</div>
</TransitionGroup>
</button>
</div>
</Body>
`;
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const rules = [
{
test: /.scss$/,
use: [
{
__DEV__ || __PROD__ ? {
loader: MiniCssExtractPlugin.loader,
options: {
hmr: __DEV__
}
},
} : 'style-loader',
{
loader: 'css-loader',
options: {
Expand Down

0 comments on commit bced701

Please sign in to comment.