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

View File

@@ -1,17 +1,8 @@
/** @type {import('jest').Config} */
module.exports = {
verbose: true,
transform: {
'^.+\\.ts$': 'ts-jest',
},
testURL: 'http://localhost/',
testRegex: '(/__tests__/.*|(\\.|/)(test))\\.ts$',
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
moduleFileExtensions: ['ts', 'js', 'json'],
globals: {
'ts-jest': {
isolatedModules: true,
},
...require('../../jest.config'),
testEnvironmentOptions: {
url: 'http://localhost/',
},
globalTeardown: '<rootDir>/test/teardown.ts',
setupFiles: ['<rootDir>/test/setup.ts'],
};