refs #6436 rollback

This commit is contained in:
Javier Segarra 2024-04-01 10:57:53 +02:00
parent 48cc499f37
commit cb55740b68
1 changed files with 1 additions and 11 deletions

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