test: add initial testing and linting (#18)

This commit is contained in:
Morten Olsen
2025-05-19 21:04:32 +02:00
committed by GitHub
parent 9d04cf0414
commit c01dce4998
33 changed files with 4159 additions and 299 deletions

View File

@@ -12,8 +12,15 @@ class FileNotFoundError extends BaseError {
}
class InvalidFileError extends BaseError {
constructor(filePath: string) {
#baseError?: unknown;
constructor(filePath: string, baseError?: unknown) {
super(`Invalid file: ${filePath}`);
this.#baseError = baseError;
}
get baseError() {
return this.#baseError;
}
}