Skip to content

Commit

Permalink
feat(2756): renaming jets for tb.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Jul 26, 2024
1 parent 81120c5 commit cec2d26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/backend/jest.tigerbeetle-environment.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { startTigerbeetleContainer } from './src/tests/tigerbeetle'
import { startTigerBeetleContainer } from './src/tests/tigerbeetle'
import { StartedTestContainer } from 'testcontainers'

import CustomTestEnvironment from './jest.custom-environment'

export default class TigerbeetleEnvironment extends CustomTestEnvironment {
export default class TigerBeetleEnvironment extends CustomTestEnvironment {
private tbContainer: StartedTestContainer | undefined

public async setup(): Promise<void> {
await super.setup()
const tbContainer = await startTigerbeetleContainer()
const tbContainer = await startTigerBeetleContainer()

this.tbContainer = tbContainer.container
this.global.tigerBeetlePort = tbContainer.port
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/tests/tigerbeetle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const TIGERBEETLE_DIR = '/var/lib/tigerbeetle'
const TIGERBEETLE_CONTAINER_LOG =
process.env.TIGERBEETLE_CONTAINER_LOG === 'true'

export async function startTigerbeetleContainer(clusterId?: number): Promise<{
export async function startTigerBeetleContainer(clusterId?: number): Promise<{
container: StartedTestContainer
port: number
}> {
Expand Down

0 comments on commit cec2d26

Please sign in to comment.