Добавление прогона тестов для ПРов (#25)
This commit is contained in:
@ -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: [],
|
||||
@ -185,5 +194,4 @@ module.exports = {
|
||||
|
||||
// Whether to use watchman for file crawling
|
||||
// watchman: true,
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
@ -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',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user