@@ -3,7 +3,7 @@ import { StartedRedisContainer } from "@testcontainers/redis";
33import { PrismaClient } from "@trigger.dev/database" ;
44import { RedisOptions } from "ioredis" ;
55import { Network , type StartedNetwork } from "testcontainers" ;
6- import { TaskContext , test } from "vitest" ;
6+ import { TestContext , test } from "vitest" ;
77import {
88 createClickHouseContainer ,
99 createElectricContainer ,
@@ -58,7 +58,7 @@ export type {
5858
5959type Use < T > = ( value : T ) => Promise < void > ;
6060
61- export const network = async ( { task } : TaskContext , use : Use < StartedNetwork > ) => {
61+ export const network = async ( { task } : TestContext , use : Use < StartedNetwork > ) => {
6262 const testName = task . name ;
6363
6464 logSetup ( "network: starting" , { testName } ) ;
@@ -85,7 +85,7 @@ export const network = async ({ task }: TaskContext, use: Use<StartedNetwork>) =
8585} ;
8686
8787export const postgresContainer = async (
88- { network, task } : { network : StartedNetwork } & TaskContext ,
88+ { network, task } : { network : StartedNetwork } & TestContext ,
8989 use : Use < StartedPostgreSqlContainer >
9090) => {
9191 const { container, metadata } = await withContainerSetup ( {
@@ -98,7 +98,7 @@ export const postgresContainer = async (
9898} ;
9999
100100export const prisma = async (
101- { postgresContainer, task } : { postgresContainer : StartedPostgreSqlContainer } & TaskContext ,
101+ { postgresContainer, task } : { postgresContainer : StartedPostgreSqlContainer } & TestContext ,
102102 use : Use < PrismaClient >
103103) => {
104104 const testName = task . name ;
@@ -123,7 +123,7 @@ export const prisma = async (
123123export const postgresTest = test . extend < PostgresContext > ( { network, postgresContainer, prisma } ) ;
124124
125125export const redisContainer = async (
126- { network, task } : { network : StartedNetwork } & TaskContext ,
126+ { network, task } : { network : StartedNetwork } & TestContext ,
127127 use : Use < StartedRedisContainer >
128128) => {
129129 const { container, metadata } = await withContainerSetup ( {
@@ -180,7 +180,7 @@ const electricOrigin = async (
180180 postgresContainer,
181181 network,
182182 task,
183- } : { postgresContainer : StartedPostgreSqlContainer ; network : StartedNetwork } & TaskContext ,
183+ } : { postgresContainer : StartedPostgreSqlContainer ; network : StartedNetwork } & TestContext ,
184184 use : Use < string >
185185) => {
186186 const { origin, container, metadata } = await withContainerSetup ( {
@@ -193,7 +193,7 @@ const electricOrigin = async (
193193} ;
194194
195195const clickhouseContainer = async (
196- { network, task } : { network : StartedNetwork } & TaskContext ,
196+ { network, task } : { network : StartedNetwork } & TestContext ,
197197 use : Use < StartedClickHouseContainer >
198198) => {
199199 const { container, metadata } = await withContainerSetup ( {
@@ -206,7 +206,7 @@ const clickhouseContainer = async (
206206} ;
207207
208208const clickhouseClient = async (
209- { clickhouseContainer, task } : { clickhouseContainer : StartedClickHouseContainer } & TaskContext ,
209+ { clickhouseContainer, task } : { clickhouseContainer : StartedClickHouseContainer } & TestContext ,
210210 use : Use < ClickHouseClient >
211211) => {
212212 const testName = task . name ;
@@ -268,7 +268,7 @@ export const containerWithElectricAndRedisTest = test.extend<ContainerWithElectr
268268} ) ;
269269
270270const minioContainer = async (
271- { network, task } : { network : StartedNetwork } & TaskContext ,
271+ { network, task } : { network : StartedNetwork } & TestContext ,
272272 use : Use < StartedMinIOContainer >
273273) => {
274274 const { container, metadata } = await withContainerSetup ( {
0 commit comments