Skip to content

Broken Sveltekit on master #1378

@n1ru4l

Description

@n1ru4l

Describe the bug

The SvelteKit build and tests on master are failing.

Your Example Website or App

https://github.com/dotansimha/graphql-yoga

Steps to Reproduce the Bug or Issue

Run tests on https://github.com/dotansimha/graphql-yoga

Expected behavior

Tests should pass :)

Screenshots or Videos

No response

Platform

  • GitHub Actions

Additional context

When I run yarn test locally SvelteKit tests always fail, because I have to run some manual steps. Instead the test file/suite should spawn the SvelteKit process.

The svelte command fails locally with the following command:


  SvelteKit v1.0.0-next.348

  local:   http://localhost:3007
  network: not exposed

  Use --host to expose server to other devices on this network


TypeError: handler is not a function
    at render_endpoint (file:///Users/laurinquast/Projects/graphql-yoga/examples/sveltekit/.svelte-kit/output/server/index.js:179:26)
    at resolve (file:///Users/laurinquast/Projects/graphql-yoga/examples/sveltekit/.svelte-kit/output/server/index.js:2155:59)
    at async respond (file:///Users/laurinquast/Projects/graphql-yoga/examples/sveltekit/.svelte-kit/output/server/index.js:2111:22)
    at async file:///Users/laurinquast/Projects/graphql-yoga/node_modules/@sveltejs/kit/dist/chunks/index4.js:166:5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions