Files
SDK-TypeScript/tests/vitest.setup.integration.ts

12 lines
314 B
TypeScript

import {beforeAll, beforeEach} from 'vitest';
import {environment, SDKConfig} from "../src/core/environment";
import {getClient} from "../src/core/http";
beforeEach(async () => {
environment.overwrite(<SDKConfig>{
apiUrl: "http://localhost:3000"
})
await getClient(false).post("v2/reset")
})