forked from debionetwork/debio-customer-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
38 lines (38 loc) · 1.14 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
preset: "@vue/cli-plugin-unit-jest",
globals: {
"vue-jest": {
pug: {
doctype: "html"
}
}
},
moduleFileExtensions: [
"js",
"ts",
"json",
"vue"
],
moduleNameMapper: {
"^@/(((?!ipfs).)*)$": "<rootDir>/src/$1", // Any library except IPFS
"vuetify/lib(.*)": "<rootDir>/node_modules/vuetify/es5$1",
"@polkadot/ui-keyring": "<rootDir>/tests/unit/@polkadot-ui-keyring.mock.js",
"@polkadot/keyring": "<rootDir>/tests/unit/@polkadot-keyring.mock.js",
"@polkadot/api": "<rootDir>/tests/unit/@polkadot-api.mock.js",
"@/common/lib/ipfs": "<rootDir>/tests/unit/ipfs-index.mock.js",
"@/common/lib/ipfs/ipfs-worker": "<rootDir>/tests/unit/ipfs-worker.mock.js",
"@/common/lib/ipfs/crypt-worker": "<rootDir>/tests/unit/crypt-worker.mock.js"
},
modulePaths: [
"<rootDir>/src",
"<rootDir>/node_modules"
],
transform: {
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
"^.+\\.ts?$": "ts-jest",
".*\\.(vue)$": "vue-jest"
},
transformIgnorePatterns: [
"<rootDir>/node_modules/(?!(vuetify|@debionetwork)/)"
]
}