appTestsDirectoryOf function

Future<String> appTestsDirectoryOf(
  1. String package
)

The directory app_tests of the package package, next to its lib/ in the configuration of the packages of this program: the directory of the files of the MatrixAppTests that the package keeps, each in a directory of its own.

Implementation

Future<String> appTestsDirectoryOf(String package) async {
  final path = const LocalFileSystem().path;
  return path.join(
    path.dirname(
      path.fromUri(
        await Isolate.resolvePackageUri(Uri.parse('package:$package/')),
      ),
    ),
    'app_tests',
  );
}