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:
parent
b1908756d4
commit
16788d1437
@ -10,5 +10,7 @@ module.exports = {
|
||||
|
||||
testEnvironment: 'node',
|
||||
|
||||
slowTestThreshold: 20,
|
||||
slowTestThreshold: 30,
|
||||
|
||||
setupFilesAfterEnv: [`${__dirname}/jest.setup.js`],
|
||||
};
|
||||
|
3
packages/server/jest.setup.js
Normal file
3
packages/server/jest.setup.js
Normal 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);
|
@ -13,10 +13,6 @@ const packageRootDir = `${__dirname}/../..`;
|
||||
|
||||
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();
|
||||
|
||||
export async function beforeAllDb(unitName: string) {
|
||||
|
Loading…
Reference in New Issue
Block a user