Skip to content

Problem with apollo client #503

@Xa3lis

Description

@Xa3lis

Describe the bug

Hello, i've a bug with @apollo/client/core in my project where i cannot launch any test (Works on jest tho)

I have a file where I import and create the Apollo client :

image

And a file where I use the client :

image

In my test I try to use that getCurrentUser function as mock

image

But when I launch a vitesse run i got a weird error...

image

Any idea ?

Thank's

Reproduction

Check screens in the description

System Info

System:
    OS: macOS 12.0.1
    CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
    Memory: 601.49 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
    npm: 8.1.3 - ~/.nvm/versions/node/v14.15.4/bin/npm
  Browsers:
    Brave Browser: 97.1.34.80
    Chrome: 97.0.4692.71
    Firefox: 89.0.2
    Firefox Developer Edition: 88.0
    Safari: 15.1
  npmPackages:
    @vitejs/plugin-vue: ^1.10.2 => 1.10.2 
    vite: ^2.7.10 => 2.7.10 
    vitest: ^0.0.132 => 0.0.132

Used Package Manager

pnpm

Validations

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