Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(server): symlink tests are skipped where the host cannot create symlinks #18212

ClosedAdEx-Partners-DE(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/18212/headopened View on GitHub

Showing 2 changed files with 82 additions and 76 deletions (loading 1).

x
0 of 2 viewed, 2 left
82 additions and 76 deletionsapps/server/src/project/AgentSessionScanner.test.tsModified
View file
@@ -382,68 +382,72 @@
}),
​
- it.effect("returns the imported project ID through a realpath alias", () =>
- Effect.gen(function* () {
- const path = yield* Path.Path;
- const fileSystem = yield* FileSystem.FileSystem;
- const claudeHomePath = yield* makeTempDir("t3code-claude-home-");
- const codexHomePath = yield* makeTempDir("t3code-codex-home-");
- const workspace = yield* makeTempDir("t3code-workspace-");
- const linkParent = yield* makeTempDir("t3code-scanner-links-");
- const workspaceAlias = path.join(linkParent, "workspace-alias");
- yield* fileSystem.symlink(workspace, workspaceAlias);
+ it.effect.skipIf(!symlinksSupported)(
+ "returns the imported project ID through a realpath alias",
+ () =>
+ Effect.gen(function* () {
+ const path = yield* Path.Path;
+ const fileSystem = yield* FileSystem.FileSystem;
+ const claudeHomePath = yield* makeTempDir("t3code-claude-home-");
+ const codexHomePath = yield* makeTempDir("t3code-codex-home-");
+ const workspace = yield* makeTempDir("t3code-workspace-");
+ const linkParent = yield* makeTempDir("t3code-scanner-links-");
+ const workspaceAlias = path.join(linkParent, "workspace-alias");
+ yield* fileSystem.symlink(workspace, workspaceAlias);
​
- yield* writeTranscript({
- filePath: path.join(claudeHomePath, "projects", "-slug", "a.jsonl"),
- contents: claudeSessionLine(workspaceAlias),