chore: update Jest #14103
test.yml
on: pull_request
test
/
⚙️ Build
1m 13s
Matrix: test / macos-integration
Matrix: test / test
Matrix: test / ubuntu-integration
Matrix: test / windows-integration
Annotations
7 errors
<ScrollRestoration /> › should restore scroll position on navigation:
packages/remix-react/__tests__/scroll-restoration-test.tsx#L151
TypeError: Response is not a constructor
at redirect (../../node_modules/@remix-run/router/utils.ts:1487:10)
at Object.<anonymous> (__tests__/scroll-restoration-test.tsx:151:13)
|
loaders work:
packages/remix-testing/dist/create-remix-stub.js#L71
TypeError: Request is not a constructor
at createClientSideRequest (../../node_modules/@remix-run/router/router.ts:3849:10)
at createClientSideRequest (../../node_modules/@remix-run/router/router.ts:1288:19)
at Object.startNavigation [as initialize] (../../node_modules/@remix-run/router/router.ts:945:7)
at Object.initialize (../../node_modules/react-router/index.ts:282:6)
at createMemoryRouter (dist/create-remix-stub.js:71:42)
at renderWithHooks (../../node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (../../node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (../../node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (../../node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (../../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at performConcurrentWorkOnRoot (../../node_modules/react-dom/cjs/react-dom.development.js:25738:74)
at flushActQueue (../../node_modules/react/cjs/react.development.js:2667:24)
at act (../../node_modules/react/cjs/react.development.js:2582:11)
at ../../node_modules/@testing-library/react/dist/act-compat.js:63:25
at renderRoot (../../node_modules/@testing-library/react/dist/pure.js:159:26)
at render (../../node_modules/@testing-library/react/dist/pure.js:246:10)
at Object.<anonymous> (__tests__/stub-test.tsx:64:9)
|
loaders work:
packages/remix-testing/__tests__/stub-test.tsx#L66
Unable to find an element by: [data-testid="data"]
Ignored nodes: comments, <script />, <style />
<body>
<div />
</body>
at waitForWrapper (../../node_modules/@testing-library/dom/dist/wait-for.js:187:27)
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:101:33
at Object.findByTestId (__tests__/stub-test.tsx:66:23)
|
can pass context values:
packages/remix-testing/dist/create-remix-stub.js#L71
TypeError: Request is not a constructor
at createClientSideRequest (../../node_modules/@remix-run/router/router.ts:3849:10)
at createClientSideRequest (../../node_modules/@remix-run/router/router.ts:1288:19)
at Object.startNavigation [as initialize] (../../node_modules/@remix-run/router/router.ts:945:7)
at Object.initialize (../../node_modules/react-router/index.ts:282:6)
at createMemoryRouter (dist/create-remix-stub.js:71:42)
at renderWithHooks (../../node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (../../node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (../../node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (../../node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (../../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at performConcurrentWorkOnRoot (../../node_modules/react-dom/cjs/react-dom.development.js:25738:74)
at flushActQueue (../../node_modules/react/cjs/react.development.js:2667:24)
at act (../../node_modules/react/cjs/react.development.js:2582:11)
at ../../node_modules/@testing-library/react/dist/act-compat.js:63:25
at renderRoot (../../node_modules/@testing-library/react/dist/pure.js:159:26)
at render (../../node_modules/@testing-library/react/dist/pure.js:246:10)
at Object.<anonymous> (__tests__/stub-test.tsx:122:9)
|
can pass context values:
packages/remix-testing/__tests__/stub-test.tsx#L124
Unable to find an element by: [data-testid="root"]
Ignored nodes: comments, <script />, <style />
<body>
<div />
</body>
at waitForWrapper (../../node_modules/@testing-library/dom/dist/wait-for.js:187:27)
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:101:33
at Object.findByTestId (__tests__/stub-test.tsx:124:23)
|
test / 🧪 Test: (OS: ubuntu-latest Node: latest)
Process completed with exit code 1.
|
test / 🧪 Test: (OS: windows-latest Node: latest)
Process completed with exit code 1.
|