Initial commit, project structure and domain models
This commit is contained in:
36
src/admin/jest.config.js
Normal file
36
src/admin/jest.config.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/** @type {import('jest').Config} */
|
||||
module.exports = {
|
||||
testEnvironment: 'jsdom',
|
||||
testEnvironmentOptions: {
|
||||
customExportConditions: ['node', 'node-addons'],
|
||||
},
|
||||
roots: ['<rootDir>/src', '<rootDir>/tests'],
|
||||
testMatch: [
|
||||
'**/__tests__/**/*.spec.[jt]s?(x)',
|
||||
'**/*.spec.[jt]s?(x)',
|
||||
'**/*.test.[jt]s?(x)',
|
||||
],
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'vue', 'json'],
|
||||
transform: {
|
||||
'^.+\\.vue$': '@vue/vue3-jest',
|
||||
'^.+\\.[jt]sx?$': 'babel-jest',
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'/node_modules/(?!(vuetify)/)',
|
||||
],
|
||||
moduleNameMapper: {
|
||||
'\\.(css|scss|sass)$': '<rootDir>/tests/__mocks__/styleMock.js',
|
||||
'\\.(svg|png|jpg|jpeg|gif|webp|woff2?)$': '<rootDir>/tests/__mocks__/fileMock.js',
|
||||
'^@/(.*)$': '<rootDir>/src/$1',
|
||||
},
|
||||
globals: {
|
||||
'vue-jest': {
|
||||
tsConfig: './tsconfig.json',
|
||||
},
|
||||
},
|
||||
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{ts,vue}',
|
||||
'!src/main.ts',
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user