39 |
40 | {displayName ? `Welcome ${displayName}!` : "remix-worker-template"}
41 |
42 |
43 | All-in-one remix starter template for Cloudflare Workers.
44 |
45 |
46 |
47 | {displayName ? (
48 | <>
49 |
50 | Notes
51 |
52 |
53 |
54 | Profile
55 |
56 |
57 |
62 | >
63 | ) : (
64 | <>
65 |
66 | Login
67 |
68 |
69 |
70 | Signup
71 |
72 | >
73 | )}
74 |
75 |
76 | );
77 | }
78 |
--------------------------------------------------------------------------------
/tests/setup.ts:
--------------------------------------------------------------------------------
1 | import { test as base, expect as baseExpect } from "@playwright/test";
2 | import type { Expect } from "@playwright/test";
3 | import {
4 | fixtures,
5 | TestingLibraryFixtures,
6 | } from "@playwright-testing-library/test/fixture";
7 | import { Miniflare } from "miniflare";
8 | import { MockAgent, setGlobalDispatcher } from "undici";
9 |
10 | interface TestFixtures extends TestingLibraryFixtures {
11 | mockAgent: MockAgent;
12 | }
13 |
14 | interface WorkerFixtures {
15 | mf: Miniflare;
16 | port: number;
17 | }
18 |
19 | let expect = baseExpect as Expect & jest.Expect;
20 |
21 | export { expect };
22 |
23 | export const test = base.extend