Skip to content

Commit

Permalink
fix: remove all japa imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ephrimlawrence committed Jul 8, 2024
1 parent 48e43ad commit 0baaa48
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 9 additions & 10 deletions src/japa-plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { getActiveTest } from "@japa/runner";
import type { Ananse } from "../index";
import { randomUUID } from "node:crypto";
import { SupportedGateway } from "@src/helpers/constants";
// @ts-ignore
import { TestContext } from "@japa/runner/core";
// import { TestContext } from "@japa/runner/core";

export class TestRunner {
#inputs: string[] = [];
Expand Down Expand Up @@ -255,9 +254,9 @@ export function anansePlugin(config: Config) {
});

// biome-ignore lint/complexity/useArrowFunction: <explanation>
TestContext.getter("ussd", function () {
return obj;
});
// TestContext.getter("ussd", function () {
// return obj;
// });
};
}

Expand All @@ -284,11 +283,11 @@ interface Config {
}
// @ts-ignore

declare module '@japa/runner/core' {
interface TestContext {
ussd: TestRunner
}
}
// declare module '@japa/runner/core' {
// interface TestContext {
// ussd: TestRunner
// }
// }

// declare module "@japa/runner" {
// interface TestContext {
Expand Down

0 comments on commit 0baaa48

Please sign in to comment.