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

Tools: Fixed tests

This commit is contained in:
Laurent Cozic 2021-12-20 17:24:45 +01:00
parent a7a2dfbbd0
commit 8f17fb7f71
4 changed files with 11 additions and 5 deletions

View File

@ -42,8 +42,8 @@
"tagServerLatest": "node packages/tools/tagServerLatest.js",
"buildServerDocker": "node packages/tools/buildServerDocker.js",
"setupNewRelease": "node ./packages/tools/setupNewRelease",
"test-ci": "yarn workspaces foreach --parallel --verbose --interlaced run test-ci",
"test": "yarn workspaces foreach --parallel --verbose --interlaced run test",
"test-ci": "yarn workspaces foreach --parallel --verbose --interlaced --jobs 3 run test-ci",
"test": "yarn workspaces foreach --parallel --verbose --interlaced --jobs 3 run test",
"tsc": "yarn workspaces foreach --parallel --verbose --interlaced run tsc",
"updateIgnored": "gulp updateIgnoredTypeScriptBuild",
"updatePluginTypes": "./packages/generator-joplin/updateTypes.sh",

View File

@ -23,7 +23,7 @@
"@types/node-rsa": "^1.1.1",
"@types/react": "^17.0.20",
"clean-html": "^1.5.0",
"jest": "^26.6.3",
"jest": "26.6.3",
"sharp": "^0.26.2",
"typescript": "^4.0.5"
},

View File

@ -428,6 +428,12 @@ async function setupDatabaseAndSynchronizer(id: number, options: any = null) {
syncTarget.setFileApi(fileApi());
syncTarget.setLogger(logger);
synchronizers_[id] = await syncTarget.synchronizer();
// For now unset the share service as it's not properly initialised.
// Share service tests are in ShareService.test.ts normally, and if it
// becomes necessary to test integration with the synchroniser we can
// initialize it here.
synchronizers_[id].setShareService(null);
}
encryptionServices_[id] = new EncryptionService();

View File

@ -3134,7 +3134,7 @@ __metadata:
image-data-uri: ^2.0.0
image-type: ^3.0.0
immer: ^7.0.14
jest: ^26.6.3
jest: 26.6.3
js-yaml: ^4.1.0
levenshtein: ^1.0.5
lodash: ^4.17.20
@ -17981,7 +17981,7 @@ __metadata:
languageName: node
linkType: hard
"jest@npm:^26.6.3":
"jest@npm:26.6.3, jest@npm:^26.6.3":
version: 26.6.3
resolution: "jest@npm:26.6.3"
dependencies: