Skip to content

Commit a9a02bb

Browse files
author
QRaimbault
committed
💚 Add stub for static files
1 parent 722550f commit a9a02bb

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

__test__/empty-module.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default '';

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
"transform": {
4545
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
4646
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
47+
},
48+
"moduleNameMapper": {
49+
"\\.(css|jpg|jpeg|png|scss|sass|svg|eot|woff|woff2|ttf|otf|ico)$": "<rootDir>/__test__/empty-module.js"
4750
}
4851
},
4952
"dependencies": {

src/components/Index/Articles.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { shallow } from 'vue-test-utils'
2-
import Articles from 'Articles.vue';
2+
import Articles from './Articles.vue';
33

44
describe('Articles.vue', () => {
55
const articles = [

0 commit comments

Comments
 (0)