'codeception laravel7 Failed to resolve cyclic dependencies for class 'Tests\Api\ApiTester'

I am in the middle of converting my lumen app to laravel7 and while working on tests.. I am facing an issue when running the API tests.

I have a test file named AbcCest, and when i try to run it; I keep getting the error:

Failed to inject dependencies in instance of 'Tests\Api\AbcCest'. Failed to resolve cyclic dependencies for class 'Tests\Api\ApiTester'

here is my api.suite.yml

class_name: ApiTester
modules:
    enabled:
        - Helper\Api
        - Asserts
        - Laravel5:
              environment_file: .env.testing

and here is my AbcCest file

<?php
namespace Tests\Api;

class CancellationCest
{
    public function _before(ApiTester $I)
    {
        $I->doSomething();
    }

    public function _after(ApiTester $I)
    {
    }

    public function tryToAbc(\ApiTester $I)
    {/*do things*/}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source