Skip to content

Commit

Permalink
fix(core): 🐛 updating suite.test.ts
Browse files Browse the repository at this point in the history
updating suite.test.ts by substrating beforeall

ref #123
  • Loading branch information
Animesh1432 committed May 16, 2024
1 parent 8d97c5b commit 4705614
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/test/suite.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { beforeAll, describe } from "@jest/globals";
import { describe } from "@jest/globals";
import { DEFAULT_PORT, WrappidApp } from "@wrappid/service-core";
import { WrappidTestSuite } from "@wrappid/test-suite";

Expand All @@ -14,10 +14,11 @@ import ValidationsRegistry from "./../../src/registry/ValidationsRegistry";
import swaggerJson from "./../../src/swagger-output.json";

let wrappidApp: WrappidApp;
let wrappidTestSuite: WrappidTestSuite;

beforeAll(async () => {
await wrappidApp.init();
}, 20000);
// beforeAll(async () => {
// await wrappidTestSuite.getRoutes();
// }, 20000);

describe("Wrappid Automation Testing Suite", () => {
const __PORT = process.env.PORT || DEFAULT_PORT;
Expand Down Expand Up @@ -48,5 +49,6 @@ describe("Wrappid Automation Testing Suite", () => {
package: {...packageJson}
});

new WrappidTestSuite(wrappidApp).init();
wrappidTestSuite = new WrappidTestSuite(wrappidApp);
wrappidTestSuite.init();
});

0 comments on commit 4705614

Please sign in to comment.