Mercurial > gemma
diff client/jest.config.js @ 13:88d0d60924cf
Move vuejs app into subdir `client`
Using a subdirectory for the web application keeps more structure
in the repo.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 20 Jun 2018 17:02:06 +0200 |
parents | jest.config.js@1597506a2241 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/jest.config.js Wed Jun 20 17:02:06 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))" + ] +};