Skip to content

No tests found when using fedtest with pnpm #406

Open
@enisdenjo

Description

@enisdenjo

Check this failing CI: https://github.com/dotansimha/graphql-yoga/actions/runs/4512947657/jobs/7947092913?pr=2525#step:10:917.

Same error occurs locally:

Run with `--passWithNoTests` to exit with code 0
In <wherever>/node_modules/.pnpm/@[email protected]_35dl3mosxfjzghpl26tn7o3fly/node_modules/@apollo/federation-subgraph-compatibility-tests
  93 files checked.
  testMatch: **/__tests__/**/*.[jt]s?(x), **/?(*.)+(spec|test).[tj]s?(x) - 24 matches
  testPathIgnorePatterns:  - 0 matches
  testRegex:  - 0 matches
Pattern: <wherever>/node_modules/.pnpm/@[email protected]_35dl3mosxfjzghpl26tn7o3fly/node_modules/@apollo/federation-subgraph-compatibility-tests/dist/tests - 0 matches
 +6ms
compatibility tests encountered an error: SyntaxError: Unexpected end of JSON input +3ms

Repro steps:

  1. git clone [email protected]:dotansimha/graphql-yoga.git
  2. pnpm i
  3. pnpm build
  4. cd examples/nestjs-apollo-federation-compatibility
  5. pnpm build
  6. pnpm test (script for running fedtest)

I am out of ideas about what I can try to remedy this issue, honestly I don't even know why it happens.

Any help would be appreciated - thanks!

P.S. I am not using the GH action because there is already one for the graphql-yoga package and running multiple compatibility GH actions crates a race condition on the PR report comment.

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