1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-17 14:22:02 +00:00
bramw_baserow/web-frontend/jest.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
896 B
JavaScript
Raw Permalink Normal View History

2023-04-28 10:56:33 +00:00
const coverageConfig = require('./coverage.config.js')
const path = require('path')
2023-04-28 10:56:33 +00:00
module.exports = {
2023-04-28 10:56:33 +00:00
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/test/unit/**/*.spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
2024-05-21 08:05:57 +00:00
'^@baserow/(.*).(scss|sass)$': '<rootDir>/test/helpers/scss.js',
2023-04-28 10:56:33 +00:00
'^@baserow/(.*)$': '<rootDir>/$1',
'^@baserow_test_cases/(.*)$': path.join(__dirname, '../tests/cases/$1'),
2023-04-28 10:56:33 +00:00
'^@/(.*)$': '<rootDir>/$1',
'^~/(.*)$': '<rootDir>/$1',
'^vue$': '<rootDir>/node_modules/vue/dist/vue.common.js',
},
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.vue$': '@vue/vue2-jest',
2024-04-23 12:12:46 +00:00
'^.+\\.(gif|ico|jpg|jpeg|png|svg)$':
'<rootDir>/test/helpers/stubFileTransformer.js',
2023-04-28 10:56:33 +00:00
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
...coverageConfig,
}