Skip to content

feat: react-router v7 #371

feat: react-router v7

feat: react-router v7 #371

Triggered via pull request November 24, 2024 06:21
Status Failure
Total duration 58s
Artifacts

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 2 warnings
tests/build.test.ts > gen route types: tests/build.test.ts#L19
Error: Snapshot `gen route types 1` mismatched - Expected + Received - "declare module "remix-routes" { + "declare module "safe-routes" { - type URLSearchParamsInit = string | string[][] | Record<string, string> | URLSearchParams; + type URLSearchParamsInit = string | string[][] | Record<string, string> | URLSearchParams; - // symbol won't be a key of SearchParams + // symbol won't be a key of SearchParams - type IsSearchParams<T> = symbol extends keyof T ? false : true; + type IsSearchParams<T> = symbol extends keyof T ? false : true; - type ExportedQuery<T> = IsSearchParams<T> extends true ? T : URLSearchParamsInit; + type ExportedQuery<T> = IsSearchParams<T> extends true ? T : URLSearchParamsInit; - export interface Routes { + export interface Routes { - "/": { + "/": { - id: '/', + id: '/', - params: never, + params: never, - query: ExportedQuery<import('../app/root').SearchParams>, + query: ExportedQuery<import('../app/root').SearchParams>, - }, + }, - "/:lang?/about": { + "/:lang?/about": { - id: '/:lang?/about', + id: '/:lang?/about', - params: {lang?: string | number}, + params: {lang?: string | number}, - query: ExportedQuery<import('../app/routes/($lang).about').SearchParams>, + query: ExportedQuery<import('../app/routes/($lang).about').SearchParams>, - }, + }, - "/admin": { + "/admin": { - id: '/admin', + id: '/admin', - params: never, + params: never, - query: ExportedQuery<import('../app/routes/admin._index').SearchParams>, + query: ExportedQuery<import('../app/routes/admin._index').SearchParams>, - }, + }, - "/admin/episodes": { + "/admin/episodes": { - id: '/admin/episodes', + id: '/admin/episodes', - params: never, + params: never, - query: ExportedQuery<import('../app/routes/admin.episodes._index').SearchParams>, + query: ExportedQuery<import('../app/routes/admin.episodes._index').SearchParams>, - }, + }, - "/admin/episodes/:id": { + "/admin/episodes/:id": { - id: '/admin/episodes/:id', + id: '/admin/episodes/:id', - params: {id: string | number}, + params: {id: string | number}, - query: ExportedQuery<import('../app/routes/admin.episodes.$id._index').SearchParams>, + query: ExportedQuery<import('../app/routes/admin.episodes.$id._index').SearchParams>, - }, + }, - "/admin/episodes/:id/comments": { + "/admin/episodes/:id/comments": { - id: '/admin/episodes/:id/comments', + id: '/admin/episodes/:id/comments', - params: {id: string | number}, + params: {id: string | number}, - query: ExportedQuery<import('../app/routes/admin.episodes.$id.comments').SearchParams>, + query: ExportedQuery<import('../app/routes/admin.episodes.$id.comments').SearchParams>, - }, + }, - "/admin/episodes/new": { + "/admin/episodes/new": { - id: '/admin/episodes/new', + id: '/admin/episodes/new', - params: never, + params: never, - query: ExportedQuery<import('../app/routes/admin.episodes.new').SearchParams>, + query: ExportedQuery<import('../app/routes/admin.episodes.new').SearchParams>, - }, + }, - "/api/:id.json": { + "/api/:id.json": { - id: '/api/:id.json', + id: '/api/:id.json', - params: {id: string | number}, + params: {id: string | number}, - query: ExportedQuery<import('../app/routes/api.$id[.]json').SearchParams>, + query: ExportedQuery<import('../app/routes/api.$id[.]json').SearchParams>, - }, + }, - "/auth": { + "/auth": { - id: '/auth', + id: '/auth', - params: never, + params: never, - query: ExportedQuery<import('../app/routes/auth._auth').SearchParams>, + query: ExportedQuery<import('../app/routes/auth._auth').SearchParams>, - }, + }, - "/auth/login": { + "/auth/login": { - id: '/auth/login', + id: '/auth/login', - params: never, + params: never, - query: ExportedQuery<import('../app/routes/auth._auth.
tests/index.test.ts > basename: tests/index.test.ts#L63
AssertionError: expected 'blog/posts' to be '/blog/posts' // Object.is equality Expected: "/blog/posts" Received: "blog/posts" ❯ tests/index.test.ts:63:27
test (ubuntu-latest, 20.x)
Process completed with exit code 1.
test (windows-latest, 18.x)
The job was canceled because "ubuntu-latest_20_x" failed.
test (windows-latest, 18.x)
The operation was canceled.
test (windows-latest, 22.x)
The job was canceled because "ubuntu-latest_20_x" failed.
test (windows-latest, 22.x)
The operation was canceled.
test (windows-latest, 20.x)
The job was canceled because "ubuntu-latest_20_x" failed.
test (windows-latest, 20.x)
The operation was canceled.
test (ubuntu-latest, 18.x)
The job was canceled because "ubuntu-latest_20_x" failed.
test (ubuntu-latest, 18.x)
The operation was canceled.
test (ubuntu-latest, 22.x)
The job was canceled because "ubuntu-latest_20_x" failed.
test (ubuntu-latest, 22.x)
A task was canceled.
test (ubuntu-latest, 20.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test (ubuntu-latest, 20.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/