mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* lts to pre prelease query * Add test cases for query options resolution * string and undefined * comments * fixes brackets --------- Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: Midhun G S <gsmithun4@gmail.com>
34 lines
937 B
TypeScript
34 lines
937 B
TypeScript
import type { Config } from '@jest/types';
|
|
|
|
const config: Config.InitialOptions = {
|
|
verbose: true,
|
|
moduleFileExtensions: ['js', 'json', 'ts', 'node'],
|
|
rootDir: '.',
|
|
testEnvironment: 'node',
|
|
testRegex: '.spec.ts$',
|
|
transform: {
|
|
'^.+\\.(t|j)s$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: 'tsconfig.json',
|
|
},
|
|
],
|
|
},
|
|
moduleNameMapper: {
|
|
'^src/(.*)': '<rootDir>/src/$1',
|
|
'@dto/(.*)': '<rootDir>/src/dto/$1',
|
|
'@plugins/(.*)': '<rootDir>/plugins/$1',
|
|
'@services/(.*)': '<rootDir>/src/services/$1',
|
|
'@entities/(.*)': '<rootDir>/src/entities/$1',
|
|
'@controllers/(.*)': '<rootDir>/src/controllers/$1',
|
|
'@modules/(.*)': '<rootDir>/src/modules/$1',
|
|
'@helpers/(.*)': '<rootDir>/src/helpers/$1',
|
|
'@ee/(.*)': '<rootDir>/ee/$1',
|
|
'@apps/(.*)': '<rootDir>/ee/apps/$1',
|
|
ormconfig: '<rootDir>/ormconfig.ts',
|
|
},
|
|
runner: 'groups',
|
|
testTimeout: 30000,
|
|
};
|
|
|
|
export default config;
|