0
0
Fork 0
mirror of https://github.com/alerta/alerta-webui.git synced 2025-03-14 12:42:45 +00:00
alerta_alerta-webui/jest.config.js
2020-01-06 09:23:40 +01:00

18 lines
535 B
JavaScript

module.exports = {
moduleFileExtensions: ["js", "jsx", "json", "vue", "ts", "tsx"],
transform: {
"^.+\\.vue$": "vue-jest",
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$":
"jest-transform-stub",
"^.+\\.tsx?$": "ts-jest",
'^.+\\.jsx?$': 'babel-jest',
},
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1"
},
snapshotSerializers: ["jest-serializer-vue"],
testMatch: [
"**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
],
testURL: "http://localhost/"
};