0
0
Fork 0
mirror of https://github.com/alerta/alerta-webui.git synced 2025-03-15 04:54:45 +00:00
alerta_alerta-webui/jest.config.js

19 lines
535 B
JavaScript
Raw Normal View History

2019-01-17 17:07:37 +00:00
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",
2020-01-06 08:23:40 +00:00
"^.+\\.tsx?$": "ts-jest",
'^.+\\.jsx?$': 'babel-jest',
2019-01-17 17:07:37 +00:00
},
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1"
},
snapshotSerializers: ["jest-serializer-vue"],
testMatch: [
"**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
],
testURL: "http://localhost/"
};