ToolJet/server/jest.config.ts
Arpit 8a89bc8b71
[Feature] : SendGrid integration (Datasource API) (#1608)
* SendGrid integration

* unused logs

* unused logs

* update help text

* fixestypos for schema description

* fixestypos for schema description

* adding sendgrid docs

* updates logo from  Sendgrid's media kit

* sendgrid query schema updated

* fixes typos

* updates docs

* typos fix

* fix jest module transform

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2021-12-22 17:23:45 +05:30

21 lines
629 B
TypeScript

module.exports = async () => {
return {
verbose: true,
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: '.',
testEnvironment: 'node',
testRegex: '.spec.ts$',
testPathIgnorePatterns: ['.e2e-spec.ts$'],
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
moduleNameMapper: {
'dist/src/entities/(.*)': '<rootDir>/dist/src/entities/$1',
'^src/(.*)': '<rootDir>/src/$1',
'@plugins/(.*)': '<rootDir>/plugins/$1',
'@services/(.*)': '<rootDir>/src/services/$1',
'@controllers/(.*)': '<rootDir>/src/controllers/$1',
'@ee/(.*)': '<rootDir>/ee/$1',
},
};
};