File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
docs/dev-notes/2026-01-02/migrate-from-svelte-5-ui-lib-to-flowbite-svelte Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,17 @@ test.describe('TailwindCSS v4 configuration', () => {
184184
185185 test (' xs breakpoint media queries are generated in CSS' , () => {
186186 const cssDir = resolve (' .svelte-kit/output/client/_app/immutable/assets' );
187- const cssFiles = require (' fs' )
188- .readdirSync (cssDir )
189- .filter ((f : string ) => f .startsWith (' 0.' ) && f .endsWith (' .css' ));
190- const cssPath = resolve (cssDir , cssFiles [0 ]);
191- const css = readFileSync (cssPath , ' utf-8' );
187+ const cssFiles = readdirSync (cssDir )
188+ .filter ((f : string ) => f .endsWith (' .css' ))
189+ .sort ()
190+ .reverse ();
191+
192+ expect (cssFiles .length ).toBeGreaterThan (0 );
193+
194+ // xs ブレークポイントを確認するため、全ての CSS ファイルをまとめる
195+ const allCss = cssFiles
196+ .map ((f : string ) => readFileSync (resolve (cssDir , f ), ' utf-8' ))
197+ .join (' \n ' );
192198
193199 // xs: プレフィックス付きクラスが CSS に含まれているか確認
194200 // TailwindCSS v4 では @media クエリで xs breakpoint が定義される
You can’t perform that action at this time.
0 commit comments