Skip to content

[Flaky CI]: Next.js unit test #12880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mydea opened this issue Jul 11, 2024 · 0 comments · Fixed by #12881
Closed

[Flaky CI]: Next.js unit test #12880

mydea opened this issue Jul 11, 2024 · 0 comments · Fixed by #12881

Comments

@mydea
Copy link
Member

mydea commented Jul 11, 2024

Flakiness Type

Other / Unknown

Name of Job

Node (22) Unit Tests

Name of Test

test/edge/edgeWrapperUtils.test.ts

Link to Test Run

https://github.com/getsentry/sentry-javascript/actions/runs/9890364073/job/27318708402

Details

Test suite failed to run

    test/edge/edgeWrapperUtils.test.ts:6:28 - error TS2339: Property 'Request' does not exist on type 'Global & typeof globalThis'.

    6 const origRequest = global.Request;
                                 ~~~~~~~
    test/edge/edgeWrapperUtils.test.ts:7:29 - error TS2339: Property 'Response' does not exist on type 'Global & typeof globalThis'.

    7 const origResponse = global.Response;
                                  ~~~~~~~~
    test/edge/edgeWrapperUtils.test.ts:22:10 - error TS2339: Property 'Request' does not exist on type 'Global & typeof globalThis'.

    22   global.Request = origRequest;
                ~~~~~~~
    test/edge/edgeWrapperUtils.test.ts:23:10 - error TS2339: Property 'Response' does not exist on type 'Global & typeof globalThis'.

    23   global.Response = origResponse;
                ~~~~~~~~
    test/edge/edgeWrapperUtils.test.ts:32:41 - error TS2304: Cannot find name 'Response'.

    32     const origFunctionReturnValue = new Response();
                                               ~~~~~~~~
    test/edge/edgeWrapperUtils.test.ts:41:51 - error TS2304: Cannot find name 'Request'.

    41     const returnValue = await wrappedFunction(new Request('https://sentry.io/'));
                                                         ~~~~~~~
    test/edge/edgeWrapperUtils.test.ts:60:38 - error TS2304: Cannot find name 'Request'.

    60     await expect(wrappedFunction(new Request('https://sentry.io/'))).rejects.toBe(error);
                                            ~~~~~~~
    test/edge/edgeWrapperUtils.test.ts:67:25 - error TS2552: Cannot find name 'Request'. Did you mean 'request'?

    67     const request = new Request('https://sentry.io/');
                               ~~~~~~~

      test/edge/edgeWrapperUtils.test.ts:67:11
        67     const request = new Request('https://sentry.io/');
                     ~~~~~~~
        'request' is declared here.
    test/edge/edgeWrapperUtils.test.ts:68:46 - error TS2304: Cannot find name 'Response'.

    68     const origFunction = jest.fn(_req => new Response());
                                                    ~~~~~~~~
    test/edge/edgeWrapperUtils.test.ts:97:41 - error TS2304: Cannot find name 'Response'.

    97     const origFunctionReturnValue = new Response();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant