Mercurial > gemma
diff jest.config.js @ 3:1597506a2241 vue-cli
merge with vue-cli
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 13 Jun 2018 10:57:57 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jest.config.js Wed Jun 13 10:57:57 2018 +0200 @@ -0,0 +1,16 @@ +module.exports = { + moduleFileExtensions: ["js", "jsx", "json", "vue"], + transform: { + "^.+\\.vue$": "vue-jest", + ".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": + "jest-transform-stub", + "^.+\\.jsx?$": "babel-jest" + }, + moduleNameMapper: { + "^@/(.*)$": "<rootDir>/src/$1" + }, + snapshotSerializers: ["jest-serializer-vue"], + testMatch: [ + "<rootDir>/(tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx))" + ] +};