Skip to content

server target

server target #4

Triggered via push February 22, 2024 17:45
Status Failure
Total duration 47s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
test
nthul#test: command (/home/runner/work/nthul/nthul/lib/nthul) /opt/hostedtoolcache/node/20.11.1/x64/bin/pnpm run test exited (1)
src/client/theme-switcher/theme-switcher.test.tsx > theme-switcher > check if h1 heading exists: lib/nthul/src/client/theme-switcher/theme-switcher.tsx#L19
TypeError: matchMedia is not a function ❯ src/client/theme-switcher/theme-switcher.tsx:19:17 ❯ commitHookEffectListMount ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:23150:26 ❯ commitPassiveMountOnFiber ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:24931:11 ❯ commitPassiveMountEffects_complete ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:24891:9 ❯ commitPassiveMountEffects_begin ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:24878:7 ❯ commitPassiveMountEffects ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:24866:3 ❯ flushPassiveEffectsImpl ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27039:3 ❯ flushPassiveEffects ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26984:14 ❯ ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26769:9 ❯ flushActQueue ../../node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:2667:24
src/server/server-target/server-target.test.tsx > server-target > check if h1 heading exists: lib/nthul/src/server/server-target/server-target.tsx#L20
Error: Invariant: cookies() expects to have requestAsyncStorage, none available. ❯ Proxy.cookies ../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/src/client/components/headers.ts:41:11 ❯ ServerTarget src/server/server-target/server-target.tsx:20:29 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:16305:18 ❯ mountIndeterminateComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20074:13 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21587:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27426:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26560:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26466:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26434:7 ❯ recoverFromConcurrentError ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:25850:20
test
Process completed with exit code 1.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.