Removes the repository directory.
Writes the files, stages all changes, and commits them. Without changes, the commit is empty.
The commit message.
Optionalfiles: Readonly<Record<string, string | Uint8Array<ArrayBufferLike>>>
Files to write before committing.
The hash of the new commit.
ReadonlydirThe absolute path of the repository, with symbolic links resolved.
ReadonlyenvThe environment variables of the neutral configuration. Set them for the code under test, so that it runs Git like the fixture.
Runs a Git command in the repository with the neutral configuration.
Runs a Git command in the repository with the neutral configuration and reports whether it exited with code 0.
Resolves a path in the repository.
Path segments relative to the repository root.
The absolute path.
Writes a file in the repository without staging it, creating parent directories as needed.
The file path relative to the repository root.
The file contents.
Writes several files in the repository without staging them.
The files to write.
A temporary Git repository for tests.
Remove it with
cleanup(), or declare it withawait usingto remove it at the end of the scope.