createPresentationTest method

void createPresentationTest(
  1. String pathTestPage,
  2. String featureName,
  3. String pageName,
  4. Map json2DartMap,
)

Implementation

void createPresentationTest(
  String pathTestPage,
  String featureName,
  String pageName,
  Map json2DartMap,
) {
  final dirs = [
    'bloc',
    'cubit',
    'pages',
    'widgets',
  ];

  for (var dir in dirs) {
    final path = join(pathTestPage, 'presentation', dir);
    DirectoryHelper.createDir(path);
    touch(join(path, '.gitkeep'), create: true);
  }

  createPresentationCubitTest(
    join(pathTestPage, 'presentation', 'cubit'),
    featureName,
    pageName,
    json2DartMap,
  );
}