style: fix linting issues met Prettier
This commit is contained in:
parent
906eb36fec
commit
6017d9c54f
4 changed files with 12 additions and 7 deletions
|
@ -26,7 +26,7 @@ function initializeLogger(): Logger {
|
||||||
|
|
||||||
const consoleTransport = new transports.Console({
|
const consoleTransport = new transports.Console({
|
||||||
level: getEnvVar(envVars.LogLevel),
|
level: getEnvVar(envVars.LogLevel),
|
||||||
format: format.combine(format.cli(), format.simple())
|
format: format.combine(format.cli(), format.simple()),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (getEnvVar(envVars.RunMode) === 'dev') {
|
if (getEnvVar(envVars.RunMode) === 'dev') {
|
||||||
|
|
|
@ -4,7 +4,10 @@ export const apiConfig = {
|
||||||
return import.meta.env.VITE_API_BASE_URL;
|
return import.meta.env.VITE_API_BASE_URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.location.hostname === "localhost" && !(window.location.port === "80" || window.location.port === "")) {
|
if (
|
||||||
|
window.location.hostname === "localhost" &&
|
||||||
|
!(window.location.port === "80" || window.location.port === "")
|
||||||
|
) {
|
||||||
return "http://localhost:3000/api";
|
return "http://localhost:3000/api";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import apiClient from "@/services/api-client/api-client.ts";
|
import apiClient from "@/services/api-client/api-client.ts";
|
||||||
import type { AxiosResponse, ResponseType } from "axios";
|
import type { AxiosResponse, ResponseType } from "axios";
|
||||||
import { HttpErrorResponseException } from "@/exception/http-error-response-exception.ts";
|
import { HttpErrorResponseException } from "@/exception/http-error-response-exception.ts";
|
||||||
import { apiConfig } from '@/config.ts';
|
import { apiConfig } from "@/config.ts";
|
||||||
|
|
||||||
export abstract class BaseController {
|
export abstract class BaseController {
|
||||||
protected basePath: string;
|
protected basePath: string;
|
||||||
|
@ -25,7 +25,9 @@ export abstract class BaseController {
|
||||||
if (error instanceof HttpErrorResponseException) {
|
if (error instanceof HttpErrorResponseException) {
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
throw new Error(`An unexpected error occurred while fetching data from ${apiConfig.baseUrl}${this.absolutePathFor(path)}: ${error}`);
|
throw new Error(
|
||||||
|
`An unexpected error occurred while fetching data from ${apiConfig.baseUrl}${this.absolutePathFor(path)}: ${error}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { spawn } from "child_process";
|
import { spawn } from "child_process";
|
||||||
import { ChildProcess, spawnSync } from 'node:child_process';
|
import { ChildProcess, spawnSync } from "node:child_process";
|
||||||
|
|
||||||
let backendProcess: ChildProcess;
|
let backendProcess: ChildProcess;
|
||||||
|
|
||||||
|
@ -27,8 +27,8 @@ export async function setup(): Promise<void> {
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
NODE_ENV: 'test',
|
NODE_ENV: "test",
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wait until you can curl the backend
|
// Wait until you can curl the backend
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue