fix: organize integration tests according to method targets. fix: set timeouts and retries for integration tests

This commit is contained in:
StevanFreeborn
2023-02-14 23:49:18 -06:00
parent 97ae716e93
commit d314b1745b
8 changed files with 33 additions and 18 deletions
+2 -4
View File
@@ -1,4 +1,4 @@
import { type Context } from 'mocha';
import { type RootHookObject, type Context } from 'mocha';
import { expect } from 'chai';
import * as dotenv from 'dotenv';
import path from 'path';
@@ -8,11 +8,9 @@ dotenv.config({ path: envPath });
let baseURL: string | undefined;
let apiKey: string | undefined;
export const mochaHooks = (): Mocha.RootHookObject => {
export const mochaHooks = (): RootHookObject => {
return {
beforeAll(this: Context) {
this.timeout('30s');
baseURL = process.env.API_BASE_URL;
apiKey = process.env.SANDBOX_API_KEY;