Fix tests and code cleaning

This commit is contained in:
Christian Capeans 2023-07-19 12:38:50 +02:00
parent ca0a7f5fcb
commit 014fc1b5c2
4 changed files with 21 additions and 2 deletions

View File

@ -64,6 +64,7 @@
"@babel/core": "^7.20.12",
"@babel/eslint-parser": "^7.19.1",
"@babel/preset-react": "7.18.6",
"@strapi/admin-test-utils": "workspace:*",
"@strapi/eslint-config": "0.1.2",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.58",

View File

@ -760,7 +760,6 @@ class TransferEngine<
this.#handlers.assetsBackupError
);
if (context.ignore) {
console.log('Entering here');
return;
}
// Error happening during the before transfer step should be considered fatal errors

View File

@ -25,6 +25,7 @@ describe('Transfer', () => {
}),
exitMessageText: jest.fn(),
getDiffHandler: jest.fn(),
getAssetsBackupHandler: jest.fn(),
setSignalHandler: jest.fn(),
};
jest.mock(
@ -69,6 +70,7 @@ describe('Transfer', () => {
onDiagnostic: jest.fn().mockReturnThis(),
},
onSchemaDiff: jest.fn(),
onAssetsBackupError: jest.fn(),
};
},
},

View File

@ -7519,7 +7519,7 @@ __metadata:
languageName: node
linkType: hard
"@strapi/admin-test-utils@workspace:packages/admin-test-utils":
"@strapi/admin-test-utils@workspace:*, @strapi/admin-test-utils@workspace:packages/admin-test-utils":
version: 0.0.0-use.local
resolution: "@strapi/admin-test-utils@workspace:packages/admin-test-utils"
dependencies:
@ -24341,6 +24341,22 @@ __metadata:
languageName: node
linkType: hard
"mysql2@npm:3.3.0":
version: 3.3.0
resolution: "mysql2@npm:3.3.0"
dependencies:
denque: ^2.1.0
generate-function: ^2.3.1
iconv-lite: ^0.6.3
long: ^5.2.1
lru-cache: ^8.0.0
named-placeholders: ^1.1.3
seq-queue: ^0.0.5
sqlstring: ^2.3.2
checksum: a3418ab9371d5d329438eb91ecbac45f32fa8cc1b2d64773dd79a2989ad73979826492e44ac948008030177c5aba2b18b990553bd7c4f279dcbadfd345424a4f
languageName: node
linkType: hard
"mysql2@npm:3.5.1":
version: 3.5.1
resolution: "mysql2@npm:3.5.1"
@ -30284,6 +30300,7 @@ __metadata:
"@babel/core": ^7.20.12
"@babel/eslint-parser": ^7.19.1
"@babel/preset-react": 7.18.6
"@strapi/admin-test-utils": "workspace:*"
"@strapi/eslint-config": 0.1.2
"@swc/cli": 0.1.62
"@swc/core": 1.3.58