Skip to content

Commit f765d0c

Browse files
authored
Merge branch 'main' into http-error-refine
2 parents fc9d44f + 2b0f76b commit f765d0c

7 files changed

Lines changed: 51 additions & 212 deletions

File tree

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@std/semver": "jsr:@std/semver@1",
6666
"@std/streams": "jsr:@std/streams@1",
6767

68-
"@astral/astral": "jsr:@astral/astral@^0.4.6",
68+
"@astral/astral": "jsr:@astral/astral@^0.5.2",
6969
"@marvinh-test/fresh-island": "jsr:@marvinh-test/fresh-island@^0.0.1",
7070
"linkedom": "npm:linkedom@^0.16.11",
7171
"@std/async": "jsr:@std/async@1",

docs/latest/getting-started/form-submissions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ export default function Page({ data }: PageProps<Data>) {
5353
return (
5454
<div>
5555
<form>
56-
<input type="text" name="q" value={query} />
57-
<button type="submit">Search</button>
56+
<input type="text" name="q" value={query} class="border p-1" />
57+
<button type="submit" class="ml-1 px-2 py-1 bg-gray-100 border">
58+
Search
59+
</button>
5860
</form>
5961
<ul>
6062
{results.map((name) => <li key={name}>{name}</li>)}

init/src/init_test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Deno.test("init - can start dev server", async () => {
176176
await patchProject(dir);
177177
await withChildProcessServer(
178178
dir,
179-
path.join(dir, "dev.ts"),
179+
"dev",
180180
async (address) => {
181181
await withBrowser(async (page) => {
182182
await page.goto(address);
@@ -201,7 +201,7 @@ Deno.test("init - can start built project", async () => {
201201

202202
// Build
203203
await new Deno.Command(Deno.execPath(), {
204-
args: ["run", "-A", path.join(dir, "dev.ts"), "build"],
204+
args: ["task", "build"],
205205
stdin: "null",
206206
stdout: "piped",
207207
stderr: "piped",
@@ -210,7 +210,7 @@ Deno.test("init - can start built project", async () => {
210210

211211
await withChildProcessServer(
212212
dir,
213-
path.join(dir, "main.ts"),
213+
"start",
214214
async (address) => {
215215
await withBrowser(async (page) => {
216216
await page.goto(address);
@@ -234,7 +234,7 @@ Deno.test("init - errors on missing build cache in prod", async () => {
234234
await patchProject(dir);
235235

236236
const cp = await new Deno.Command(Deno.execPath(), {
237-
args: ["run", "-A", "main.ts"],
237+
args: ["task", "start"],
238238
stdin: "null",
239239
stdout: "piped",
240240
stderr: "piped",

tests/active_links_test.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ Deno.test({
9292
assertSelector(doc, "a[href='/'][data-ancestor]");
9393
assertSelector(doc, `a[href='/'][aria-current="true"]`);
9494
},
95-
sanitizeResources: false,
96-
sanitizeOps: false,
9795
});
9896

9997
Deno.test({
@@ -176,6 +174,4 @@ Deno.test({
176174
assertSelector(doc, `a[href='/'][aria-current="true"]`);
177175
});
178176
},
179-
sanitizeResources: false,
180-
sanitizeOps: false,
181177
});

tests/islands_test.tsx

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ Deno.test({
6464
await waitForText(page, ".output", "4");
6565
});
6666
},
67-
sanitizeResources: false,
68-
sanitizeOps: false,
6967
});
7068

7169
Deno.test({
@@ -96,8 +94,6 @@ Deno.test({
9694
await waitForText(page, "#multiple-2 .output", "1");
9795
});
9896
},
99-
sanitizeResources: false,
100-
sanitizeOps: false,
10197
});
10298

10399
Deno.test({
@@ -127,8 +123,6 @@ Deno.test({
127123
await waitForText(page, "#counter-2 .output", "1");
128124
});
129125
},
130-
sanitizeResources: false,
131-
sanitizeOps: false,
132126
});
133127

134128
Deno.test({
@@ -157,8 +151,6 @@ Deno.test({
157151
expect(json).toEqual({ foo: 123 });
158152
});
159153
},
160-
sanitizeResources: false,
161-
sanitizeOps: false,
162154
});
163155

164156
Deno.test({
@@ -182,8 +174,6 @@ Deno.test({
182174
await page.locator(".ready").wait();
183175
});
184176
},
185-
sanitizeResources: false,
186-
sanitizeOps: false,
187177
});
188178

189179
Deno.test({
@@ -214,8 +204,6 @@ Deno.test({
214204
expect(html).not.toContain("import { Counter }");
215205
});
216206
},
217-
sanitizeResources: false,
218-
sanitizeOps: false,
219207
});
220208

221209
Deno.test({
@@ -244,8 +232,6 @@ Deno.test({
244232
expect(doc.querySelector(".children")!.childNodes.length).toEqual(0);
245233
});
246234
},
247-
sanitizeResources: false,
248-
sanitizeOps: false,
249235
});
250236

251237
Deno.test({
@@ -276,8 +262,6 @@ Deno.test({
276262
expect(JSON.parse(text)).toEqual({ jsx: true, children: true });
277263
});
278264
},
279-
sanitizeResources: false,
280-
sanitizeOps: false,
281265
});
282266

283267
Deno.test({
@@ -313,8 +297,6 @@ Deno.test({
313297
expect(childText).toEqual("foobar");
314298
});
315299
},
316-
sanitizeResources: false,
317-
sanitizeOps: false,
318300
});
319301

320302
Deno.test({
@@ -347,8 +329,6 @@ Deno.test({
347329
await waitForText(page, ".output", "1");
348330
});
349331
},
350-
sanitizeResources: false,
351-
sanitizeOps: false,
352332
});
353333

354334
Deno.test({
@@ -392,8 +372,6 @@ Deno.test({
392372
await waitForText(page, ".children .output", "1");
393373
});
394374
},
395-
sanitizeResources: false,
396-
sanitizeOps: false,
397375
});
398376

399377
Deno.test({
@@ -436,8 +414,6 @@ Deno.test({
436414
await waitForText(page, "#b .output", "1");
437415
});
438416
},
439-
sanitizeResources: false,
440-
sanitizeOps: false,
441417
});
442418

443419
Deno.test({
@@ -481,8 +457,6 @@ Deno.test({
481457
await waitForText(page, ".children .output", "1");
482458
});
483459
},
484-
sanitizeResources: false,
485-
sanitizeOps: false,
486460
});
487461

488462
Deno.test({
@@ -557,8 +531,6 @@ Deno.test({
557531
expect(radio2).toEqual(true);
558532
});
559533
},
560-
sanitizeResources: false,
561-
sanitizeOps: false,
562534
});
563535

564536
Deno.test({
@@ -589,8 +561,6 @@ Deno.test({
589561
expect(text).toEqual("it works");
590562
});
591563
},
592-
sanitizeResources: false,
593-
sanitizeOps: false,
594564
});
595565

596566
Deno.test({
@@ -620,8 +590,6 @@ Deno.test({
620590
expect(text).toEqual("it works");
621591
});
622592
},
623-
sanitizeResources: false,
624-
sanitizeOps: false,
625593
});
626594

627595
Deno.test({
@@ -650,8 +618,6 @@ Deno.test({
650618
expect(text).toEqual("value: production");
651619
});
652620
},
653-
sanitizeResources: false,
654-
sanitizeOps: false,
655621
});
656622

657623
Deno.test({
@@ -677,8 +643,6 @@ Deno.test({
677643
await waitForText(page, ".output", "1");
678644
});
679645
},
680-
sanitizeResources: false,
681-
sanitizeOps: false,
682646
});
683647

684648
Deno.test({
@@ -709,8 +673,6 @@ Deno.test({
709673
expect(falsy).toEqual("false");
710674
});
711675
},
712-
sanitizeResources: false,
713-
sanitizeOps: false,
714676
});
715677

716678
Deno.test({
@@ -739,8 +701,6 @@ Deno.test({
739701
expect(text).toEqual("it works");
740702
});
741703
},
742-
sanitizeResources: false,
743-
sanitizeOps: false,
744704
});
745705

746706
Deno.test({
@@ -767,6 +727,4 @@ Deno.test({
767727
/<\/_fresh\/js\/[a-zA-Z0-9]+\/fresh-runtime\.js>; rel="modulepreload"; as="script", <\/_fresh\/js\/[a-zA-Z0-9]+\/SelfCounter\.js>; rel="modulepreload"; as="script"/,
768728
);
769729
},
770-
sanitizeResources: false,
771-
sanitizeOps: false,
772730
});

0 commit comments

Comments
 (0)