Skip to content

Commit d883423

Browse files
zainfathoniwheeljackzampcode-com
authored
test: add v3_relativeSplatPath future flag in Remix test utils (#223)
* test: silence react-router future warnings in vitest * fix: use v3_relativeSplatPath instead of invalid v7_ future flags The FutureConfig type in @remix-run/react only has v3_ prefix flags: - v3_fetcherPersist - v3_relativeSplatPath - v3_lazyRouteDiscovery - v3_singleFetch Remove invalid v7_startTransition (no v3 equivalent for this flag) and correct v7_relativeSplatPath → v3_relativeSplatPath. Fixes TypeScript type check failure in CI. * test: remove redundant React Router warning suppression Amp-Thread-ID: https://ampcode.com/threads/T-019c7d08-04f2-743c-9527-500a06f0ea9f Co-authored-by: Amp <amp@ampcode.com> --------- Co-authored-by: Wheeljack <wheeljack@zavi.family> Co-authored-by: Amp <amp@ampcode.com>
1 parent 2bfbac9 commit d883423

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

test/test-utils.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ export function createRemixStubWrapper(
2222
Component: () => ui,
2323
},
2424
])
25-
return <RemixStub initialEntries={initialEntries} />
25+
return (
26+
<RemixStub
27+
initialEntries={initialEntries}
28+
future={{
29+
v3_relativeSplatPath: true,
30+
}}
31+
/>
32+
)
2633
}
2734

2835
/**

0 commit comments

Comments
 (0)