createPresentationTest method
void
createPresentationTest()
Creates the presentation test directory structure.
Parameters:
pathTestPage: Base path for test filesfeatureName: Name of the featurepageName: Name of the pagejson2DartMap: JSON to Dart configuration map
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);
createDir(path);
touch(join(path, '.gitkeep'), create: true);
}
}