Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
test(lint): shader lint tests pass on macOS, where the temp folder is a symlink (#5851)
Miguel Ángela971c2bb257c
diff --git a/packages/lint/src/projectShaders.test.ts b/packages/lint/src/projectShaders.test.tsindex d71a61f30c..6a27bb06fb 100644--- a/packages/lint/src/projectShaders.test.ts+++ b/packages/lint/src/projectShaders.test.ts@@ -1,5 +1,5 @@import { afterEach, expect, it } from "vitest";-import { mkdirSync, mkdtempSync, rmSync, symlinkSync, writeFileSync } from "node:fs";+import { mkdirSync, mkdtempSync, realpathSync, rmSync, symlinkSync, writeFileSync } from "node:fs";import { tmpdir } from "node:os";import { dirname, join } from "node:path";import { lintProject } from "./project";@@ -13,7 +13,7 @@ gl_FragColor=vec4(vec3(f),1.0);}\`;`;function project(files: Record<string, string>) {- const root = mkdtempSync(join(tmpdir(), "hf-shader-lint-"));+ const root = realpathSync(mkdtempSync(join(tmpdir(), "hf-shader-lint-")));dirs.push(root);for (const [file, text] of Object.entries(files)) {mkdirSync(dirname(join(root, file)), { recursive: true });