GLib.test_get_dir

function test_get_dir(file_type: GLib.TestFileType): String {
    // Gjs wrapper for g_test_get_dir()
}
  

Gets the pathname of the directory containing test files of the type specified by file_type.

This is approximately the same as calling g_test_build_filename("."), but you don't need to free the return value.

Since 2.38

file_type

the type of file (built vs. distributed)

Returns

the path of the directory, owned by GLib