refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов
This commit is contained in:
1 parent
6b69addc8b
commit
6b38f3b4d2
23 files changed
+3044
-3859
No files matched your search
@@ -38,6 +38,10 @@ export default withMermaid({
|
||||
"text": "PatternTabs",
|
||||
"link": "/src/components/UI/PatternTabs"
|
||||
},
|
||||
{
|
||||
"text": "SearcEmployess",
|
||||
"link": "/src/components/UI/SearcEmployess"
|
||||
},
|
||||
{
|
||||
"text": "Timer",
|
||||
"link": "/src/components/UI/Timer"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|-------|-----|-----------------------|-------------|
|
||||
| `title` | `String` | `'Не забыть передать тайтл сюда!'` | нет комментария |
|
||||
| `activeTab` | `Number` | `0` | нет комментария |
|
||||
| `testingCard` | `Array` | `() => [` | нет комментария |
|
||||
| `testingCard` | `Array` | `() => []` | нет комментария |
|
||||
|
||||
|
||||
## Пример использования
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
module.exports = {
|
||||
rootDir: '../',
|
||||
// rootDir: '../',
|
||||
testEnvironment: 'jest-environment-jsdom',
|
||||
roots: ['<rootDir>/src/front/src'],
|
||||
setupFilesAfterEnv: ['<rootDir>/documentation/jest.setup.js'],
|
||||
roots: ['/app/src/front/src'],
|
||||
setupFilesAfterEnv: ['/app/documentation/jest.setup.js'],
|
||||
transform: {
|
||||
'^.+\\.vue$': '@vue/vue3-jest',
|
||||
'^.+\\.mjs$': 'babel-jest',
|
||||
@@ -11,12 +11,12 @@ module.exports = {
|
||||
},
|
||||
moduleFileExtensions: ['js', 'json', 'vue', 'mjs'],
|
||||
moduleNameMapper: {
|
||||
'^@/(.*)$': '<rootDir>/src/front/src/$1',
|
||||
'^@/(.*)$': '/app/src/front/src/$1',
|
||||
},
|
||||
transformIgnorePatterns: ['/node_modules/(?!(vuetify|quasar)/)'],
|
||||
collectCoverage: true,
|
||||
collectCoverageFrom: ['<rootDir>/src/front/src/**/*.{js,vue}'],
|
||||
collectCoverageFrom: ['/app/src/front/src/**/*.{js,vue}'],
|
||||
coveragePathIgnorePatterns: ['/documentation/'],
|
||||
coverageReporters: ['json', 'html'],
|
||||
coverageDirectory: '<rootDir>documentation/docs/public/test-coverage',
|
||||
coverageDirectory: '/app/documentation/docs/public/test-coverage',
|
||||
};
|
||||
Reference in new issue
Block a user