Console: jest tests files regexp + refactoring

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5308
GitOrigin-RevId: cd057218397e724ea7a92cdd025fae508d5774a7
This commit is contained in:
Luca Restagno 2022-08-03 16:52:07 +02:00 committed by hasura-bot
parent b658df1c43
commit af97da8496

View File

@ -4,7 +4,7 @@ module.exports = {
'^.+\\.(ts|tsx|js|jsx)?$': 'ts-jest',
'^.+\\.svg$': 'jest-svg-transformer',
},
testRegex: '(/__tests__/.*)\\.(test|spec).[jt]sx?$',
testRegex: '^.+\\.(test|spec).[jt]sx?$',
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleDirectories: ['node_modules', 'src'],