test: 🧪 Fix failing tests due to incorrect cwd resolving
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 0s
Build Docker Images / lint (push) Failing after 6s
Build Docker Images / check (push) Failing after 6s
Build Docker Images / tests (push) Failing after 5s
Deploy Docs to GitHub Pages / build (push) Failing after 0s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Mirror to Codeberg / Mirror (push) Failing after 0s
Nix Build / check (push) Failing after 0s

This commit is contained in:
Jesse Wierzbinski 2025-04-14 17:30:01 +02:00
parent 1beb18e321
commit 37bc4458e5
No known key found for this signature in database
8 changed files with 13 additions and 22 deletions

View file

@ -1,6 +1,3 @@
import { dirname } from "node:path";
import { main } from "bun";
type ElementWithId = { id: string };
export const mergeAndDeduplicate = <T extends ElementWithId>(
@ -12,7 +9,3 @@ export const mergeAndDeduplicate = <T extends ElementWithId>(
(element, index, self) =>
index === self.findIndex((t) => t.id === element.id),
);
export const cwdFromEntrypoint = (): string => {
return dirname(main);
};