Skip to content

Commit ecd8bad

Browse files
committed
fix test cases
1 parent 1faf70a commit ecd8bad

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

config/assetsMock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = '';

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
clearMocks: true,
77
coverageDirectory: "coverage",
88
moduleNameMapper: {
9+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/assetsMock.js",
910
"\\.(css|less|scss)$": "identity-obj-proxy"
1011
},
1112
testEnvironment: "jsdom",

src/__tests__/__snapshots__/app.spec.js.snap

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ exports[`should take a snapshot 1`] = `
55
<div
66
class="App--Container"
77
>
8-
Welcome to React Boilerplate!
8+
<p
9+
class="App--Title"
10+
>
11+
Welcome To React Boilerplate
12+
</p>
13+
<img
14+
class="App--Image"
15+
src=""
16+
/>
917
</div>
1018
</DocumentFragment>
1119
`;

0 commit comments

Comments
 (0)