Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

test(build): check the recursive page-promotion rule instead of two lines the config no longer contains

nirholasd287a22ac86e
diff --git a/tests/no-raw-css-module-pages.test.js b/tests/no-raw-css-module-pages.test.js
index 98bfae470..d80507d57 100644
--- a/tests/no-raw-css-module-pages.test.js
+++ b/tests/no-raw-css-module-pages.test.js
@@ -86,8 +86,13 @@ describe('no page ships a raw /src module that imports CSS', () => {
});
it('a bundled page is promoted out of dist/public/ into its serving path', () => {
+ // The config used to list one [from, to] pair per page, and this test pinned
+ // two of those lines. It now promotes every bundled page under dist/public/
+ // with one recursive rule, so what is pinned is that the rule is still there
+ // and still walks the whole mirror rather than a hand-kept list.
const cfg = readFileSync(resolve(root, 'vite.config.js'), 'utf8');
- expect(cfg).toContain("['dist/public/characters.html', 'dist/characters.html']");
- expect(cfg).toContain("['dist/public/character.html', 'dist/character.html']");
+ expect(cfg).toContain("name: 'promote-bundled-public-html'");
+ expect(cfg).toMatch(/const promote = \(dir\) =>/);
+ expect(cfg).toMatch(/if \(existsSync\(mirrorRoot\)\) promote\(mirrorRoot\)/);
});
});