From f9403597540f66c47db3f3f6bb71cd8f29d1b19c Mon Sep 17 00:00:00 2001 From: egagofur Date: Tue, 24 Nov 2026 23:02:06 +0700 Subject: [PATCH] fix(studio): check out Svelte sources with LF on Windows Windows CI checked out .svelte files with CRLF, so source assertions in the Studio tests failed. Force LF like the other studio sources. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 2 ++ tests/studio-ui-render.test.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.gitattributes b/.gitattributes index a8c10f4..5e65953 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,3 +5,5 @@ studio/**/*.js text eol=lf studio/**/*.css text eol=lf studio/**/*.html text eol=lf studio/**/*.json text eol=lf +studio/**/*.svelte text eol=lf +studio/**/*.mjs text eol=lf diff --git a/tests/studio-ui-render.test.js b/tests/studio-ui-render.test.js index a9b5f1c..df087cf 100644 --- a/tests/studio-ui-render.test.js +++ b/tests/studio-ui-render.test.js @@ -297,3 +297,8 @@ test('index.html loads only the built bundle and the app reserves the ring befor assert.match(app, /id="project-list"/); assert.match(app, /id="run-detail"/); }); + +test('Studio sources check out with LF on every OS, so source checks and the build match', () => { + const attributes = fs.readFileSync(path.join(__dirname, '..', '.gitattributes'), 'utf8'); + for (const ext of ['svelte', 'js', 'css', 'html', 'json', 'mjs']) assert.match(attributes, new RegExp(`^studio/\\*\\*/\\*\\.${ext} text eol=lf$`, 'm'), ext); +});