@newbiz/admin-script-libs
Version:
신사업 프론트엔드 공통 어드민 셋업 라이브러리.
39 lines (38 loc) • 1.06 kB
JavaScript
module.exports = {
testURL: 'http://localhost/',
setupFiles: [
'<rootDir>/test-setup.js',
],
transform: {
'.vue$': 'vue-jest',
'.(bmp|gif|jpe?g|png|tif|webp|svg|mp4|webm|flac|mp3|wav|ogg|aac|eot|[t|o]tf|woff2?)$': 'jest-transform-stub',
'.((sa|ac|c|le)ss|styl(us)?)$': 'jest-transform-stub',
'.jsx?$': 'babel-jest',
},
transformIgnorePatterns: [
'/node_modules/',
],
testRegex: '\\.(test|spec)\\.([t|j]sx?|mjs)$',
moduleFileExtensions: [
'js',
'jsx',
'ts',
'tsx',
'json',
'mjs',
'vue',
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^~/(.*)$': '<rootDir>/src/$1',
'^@@/(.*)$': '<rootDir>/src/$1',
'^~~/(.*)$': '<rootDir>/src/$1',
'^.+.(bmp|gif|jpe?g|png|tif|webp|svg|mp4|webm|flac|mp3|wav|ogg|aac|eot|[t|o]tf|woff2?)$': 'jest-transform-stub',
'^.+.((sa|ac|c|le)ss|styl(us)?)$': 'jest-transform-stub',
},
snapshotSerializers: ['jest-serializer-vue'],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
}