Skip to content
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

[0.20.2] "ArrayBuffer is not defined" when isolate=false set #1759

Closed
6 tasks done
EvHaus opened this issue Jul 31, 2022 · 0 comments · Fixed by #1774
Closed
6 tasks done

[0.20.2] "ArrayBuffer is not defined" when isolate=false set #1759

EvHaus opened this issue Jul 31, 2022 · 0 comments · Fixed by #1774

Comments

@EvHaus
Copy link
Contributor

EvHaus commented Jul 31, 2022

Describe the bug

After upgrading from 0.19.1 to 0.20.2 when I use isolate=false my tests now fail with:

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Vitest caught 1 unhandled error during the test run. This might cause false positive tests.
Please, resolve all the errors to make sure your tests are not affected.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Error: Errors occurred while running tests. For more information, see serialized error.
 ❯ Object.runTests ../node_modules/vitest/dist/chunk-vite-node-externalize.45323563.mjs:7078:17
 ❯ async file:/home/globex/Git/jest-vs-jasmine/node_modules/vitest/dist/chunk-vite-node-externalize.45323563.mjs:9504:9
 ❯ Vitest.runFiles ../node_modules/vitest/dist/chunk-vite-node-externalize.45323563.mjs:9519:12
 ❯ Vitest.start ../node_modules/vitest/dist/chunk-vite-node-externalize.45323563.mjs:9436:5
 ❯ startVitest ../node_modules/vitest/dist/chunk-vite-node-externalize.45323563.mjs:10188:5
 ❯ CAC.start ../node_modules/vitest/dist/cli.mjs:666:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: {
  "errors": [
    [ReferenceError: ArrayBuffer is not defined],
  ],
}

Reproduction

I'm really struggling to create a miminal repro case. It seems to be very finicky. I can reproduce like this:

However, that repo has a lot of code. When I remove some files, the error goes away. When I remove completely different files -- the error comes back.

I figured I'd log the issue anyway to see if the error itself can spark some ideas. If not -- I can keep trying to find a minimal repro.

System Info

System:
    OS: Linux 5.10 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)
    CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
    Memory: 26.84 GB / 31.32 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 17.8.0 - ~/.nvm/versions/node/v17.8.0/bin/node
    Yarn: 3.2.2 - ~/.nvm/versions/node/v17.8.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v17.8.0/bin/npm

Used Package Manager

yarn

Validations

@sheremet-va sheremet-va added the bug label Aug 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants