1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Setup server tests

This commit is contained in:
Laurent Cozic 2021-01-07 22:15:41 +00:00
parent b1908756d4
commit 16788d1437
3 changed files with 6 additions and 5 deletions

View File

@ -10,5 +10,7 @@ module.exports = {
testEnvironment: 'node', testEnvironment: 'node',
slowTestThreshold: 20, slowTestThreshold: 30,
setupFilesAfterEnv: [`${__dirname}/jest.setup.js`],
}; };

View File

@ -0,0 +1,3 @@
// We don't want the tests to fail due to timeout, especially on CI, and certain
// tests can take more time since we do integration testing too.
jest.setTimeout(30 * 1000);

View File

@ -13,10 +13,6 @@ const packageRootDir = `${__dirname}/../..`;
let db_: DbConnection = null; let db_: DbConnection = null;
// We don't want the tests to fail due to timeout, especially on CI, and certain
// tests can take more time since we do integration testing too.
jest.setTimeout(30 * 1000);
// require('source-map-support').install(); // require('source-map-support').install();
export async function beforeAllDb(unitName: string) { export async function beforeAllDb(unitName: string) {