1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-09 15:17:50 +00:00
bramw_baserow/web-frontend/jest.config.js
2023-04-28 10:56:33 +00:00

21 lines
691 B
JavaScript

const coverageConfig = require('./coverage.config.js')
module.exports = {
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/test/unit/**/*.spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^@baserow/(.*)$': '<rootDir>/$1',
'^@/(.*)$': '<rootDir>/$1',
'^~/(.*)$': '<rootDir>/$1',
'^vue$': '<rootDir>/node_modules/vue/dist/vue.common.js',
},
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.vue$': '@vue/vue2-jest',
'^.+\\.svg$': '<rootDir>/test/helpers/stubSvgTransformer.js',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
...coverageConfig,
}