Добавление прогона тестов для ПРов (#25)

This commit is contained in:
Nikolay
2020-12-27 12:50:12 +03:00
committed by GitHub
parent 2981b04a99
commit 9b915138b4
2 changed files with 72 additions and 64 deletions

View File

@ -79,7 +79,19 @@ module.exports = {
// ],
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
// moduleNameMapper: {},
moduleNameMapper: {
'^_api(.*)$': '<rootDir>/src/core/api$1',
'^_blocks(.*)$': '<rootDir>/src/core/blocks$1',
'^_consts(.*)$': '<rootDir>/src/core/consts$1',
'^_hooks(.*)$': '<rootDir>/src/core/hooks$1',
'^_hoks(.*)$': '<rootDir>/src/core/hoks$1',
'^_services(.*)$': '<rootDir>/src/core/services$1',
'^_types(.*)$': '<rootDir>/src/core/types$1',
'^_utils(.*)$': '<rootDir>/src/core/utils$1',
'^_enums(.*)$': '<rootDir>/src/core/enums$1',
'^_pages(.*)$': '<rootDir>/src/pages$1',
'^_referers(.*)$': '<rootDir>/src/referers$1',
},
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],
@ -141,15 +153,12 @@ module.exports = {
// testLocationInResults: false,
// The glob patterns Jest uses to detect test files
// testMatch: [
// "**/__tests__/**/*.[jt]s?(x)",
// "**/?(*.)+(spec|test).[tj]s?(x)"
// ],
testMatch: ['**/__tests__/**/*.(j|t)s?(x)', '**/?(*.)+(spec|test).(j|t)s?(x)'],
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
// testPathIgnorePatterns: [
// "/node_modules/"
// ],
testPathIgnorePatterns: [
'(.*)/dist'
],
// The regexp pattern or array of patterns that Jest uses to detect test files
// testRegex: [],
@ -186,4 +195,3 @@ module.exports = {
// Whether to use watchman for file crawling
// watchman: true,
};

View File

@ -1,10 +1,10 @@
export const enum TaskStatus {
export enum TaskStatus {
Progress = 'progress',
Removed = 'removed',
Done = 'done',
}
export const enum FolderType {
export enum FolderType {
Project = 'project',
Information = 'information',
}