diff --git a/src/__tests__/_/forCodeCoverage.spec.ts b/src/__tests__/_/forCodeCoverage.spec.ts index 177fb288c..cd6a6a36e 100644 --- a/src/__tests__/_/forCodeCoverage.spec.ts +++ b/src/__tests__/_/forCodeCoverage.spec.ts @@ -1,5 +1,4 @@ import { FOR_CODE_COV as $1 } from "backend/lib/request/validations/types"; -import { FOR_CODE_COV as $2 } from "backend/types"; import { FOR_CODE_COV as $3 } from "shared/form-schemas/types"; import { FOR_CODE_COV as $4 } from "shared/validations/types"; import { FOR_CODE_COV as $5 } from "shared/types/options"; @@ -46,7 +45,6 @@ import { noop } from "shared/lib/noop"; noop( $1, - $2, $3, $4, $5, diff --git a/src/backend/lib/config-persistence/__tests__/ConfigDataPersistenceAdaptor.spec.ts b/src/backend/lib/config-persistence/__tests__/ConfigDataPersistenceAdaptor.spec.ts index 9b57927e4..d69cfcf37 100644 --- a/src/backend/lib/config-persistence/__tests__/ConfigDataPersistenceAdaptor.spec.ts +++ b/src/backend/lib/config-persistence/__tests__/ConfigDataPersistenceAdaptor.spec.ts @@ -61,10 +61,6 @@ const PERSITENT_ADAPTORS: { describe.each(PERSITENT_ADAPTORS)( "$title persistence adaptor", ({ adaptor, title }) => { - beforeAll(async () => { - await adaptor.setup(); - }); - it("should get create new item when persisting", async () => { await adaptor.persistItem("foo", { age: 5, id: "foo", name: "Hello" }); }); diff --git a/src/backend/lib/config/config.service.spec.ts b/src/backend/lib/config/config.service.spec.ts index e30a20467..b9e223a63 100644 --- a/src/backend/lib/config/config.service.spec.ts +++ b/src/backend/lib/config/config.service.spec.ts @@ -95,16 +95,17 @@ describe("Config Service", () => { it("should throw error on prod for empty env", async () => { ConfigApiService.isInitialized = false; - expect(() => - new ConfigApiService({ - ENV_LOCAL_FILE, - NODE_ENV: "production", - }).bootstrap() + expect( + () => + new ConfigApiService({ + ENV_LOCAL_FILE, + NODE_ENV: "production", + }) ).toThrowError(); }); it("should create new valid config file when empty", async () => { - new ConfigApiService({ ENV_LOCAL_FILE }).bootstrap(); + new ConfigApiService({ ENV_LOCAL_FILE }); const content = fs.readFileSync(fullPath).toString(); @@ -145,7 +146,7 @@ describe("Config Service", () => { new ConfigApiService({ ...oldEnv, ENV_LOCAL_FILE, - }).bootstrap(); + }); const content = fs.readFileSync(fullPath).toString(); diff --git a/src/backend/lib/key-value/index.ts b/src/backend/lib/key-value/index.ts index 01d1e291e..8f47aaded 100644 --- a/src/backend/lib/key-value/index.ts +++ b/src/backend/lib/key-value/index.ts @@ -14,10 +14,6 @@ export class KeyValueStoreApiService { private readonly _keyValueStorePersistenceService: AbstractConfigDataPersistenceService ) {} - async bootstrap() { - await this._keyValueStorePersistenceService.setup(); - } - async clearItem() { await this._keyValueStorePersistenceService.removeItem(this.key); }