feat: setup nightly tests for postgres and mysql schemas (#4441)

* feat: unify Jest config

* feat: simplify DB setup for tests

* feat: setup nightly tests for postgres and mysql schemas
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-10-25 22:06:03 +02:00
committed by GitHub
parent 5c9b40117a
commit 99157cf581
20 changed files with 352 additions and 9984 deletions

21
jest.config.js Normal file
View File

@@ -0,0 +1,21 @@
const { compilerOptions } = require('./tsconfig.json');
/** @type {import('jest').Config} */
module.exports = {
verbose: true,
preset: 'ts-jest',
testEnvironment: 'node',
testRegex: '\\.(test|spec)\\.(js|ts)$',
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
globals: {
'ts-jest': {
isolatedModules: true,
tsconfig: {
...compilerOptions,
declaration: false,
sourceMap: false,
skipLibCheck: true,
},
},
},
};