chore: restructure repository into packages/ folder (#3197)

We're having a growing number of packages in this repository. This PR
moves them into a `packages/` directory like it's commonly done in other
projects.
This commit is contained in:
Marvin Hagemeister
2025-08-06 15:52:45 +02:00
committed by GitHub
parent 27e407a1e3
commit 815b1940e3
184 changed files with 94 additions and 82 deletions
+26
View File
@@ -0,0 +1,26 @@
import { expect } from "@std/expect";
Deno.test("JSX precompile - check config", async () => {
const { stderr, success } = await new Deno.Command(Deno.execPath(), {
args: ["run", "-A", "dev.ts"],
cwd: new URL("./fixture_precompile/invalid", import.meta.url),
}).output();
const stderrText = new TextDecoder().decode(stderr);
expect(stderrText).toContain("jsxPrecompileSkipElements to contain");
expect(success).toEqual(false);
});
Deno.test("JSX precompile - run vnode hooks", async () => {
const { stdout, success } = await new Deno.Command(Deno.execPath(), {
args: ["run", "-A", "main.tsx"],
cwd: new URL("./fixture_precompile/valid", import.meta.url),
}).output();
const stdoutText = new TextDecoder().decode(stdout);
expect(stdoutText).toContain('<img src="/foo.jpg?__frsh_c=');
expect(stdoutText).toContain('<source src="/bar.jpg?__frsh_c=');
expect(stdoutText).toContain('<div f-client-nav="true">');
expect(stdoutText).toContain('<span f-client-nav="false">');
expect(success).toEqual(true);
});