7773-testToMaster_2430 #2774

Merged
alexm merged 368 commits from 7773-testToMaster_2430 into master 2024-07-23 06:21:03 +00:00
1 changed files with 1 additions and 11 deletions
Showing only changes of commit cb55740b68 - Show all commits

View File

@ -10,7 +10,6 @@ async function init() {
host: process.env.DB_HOST,
port: process.env.DB_PORT
});
customBeforeAll();
const bootOptions = {dataSources};
await new Promise((resolve, reject) => {
app.boot(bootOptions,
@ -24,16 +23,7 @@ async function deinit() {
console.log('Stopping backend.');
await app.disconnect();
}
function customBeforeAll() {
Object.assign(beforeAll, {
ctx: {
req: {
accessToken: {userId: 9},
headers: {origin: 'http://localhost'},
}
}
});
}
module.exports = {
init,
deinit