You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With the latest release (rc.21) test cases using the spread operator will fail because of TypeError: tslib_1.__spreadArray is not a function. The issue is most likely coming directly from tslib (see issue linked below) and was introduced with the latest update of tslib (8d27843).
To Reproduce
A reproduction can be a test case for a piece of code which uses a spread operator. Example:
I don't think this comes from VTU: rc.21 was still using tslib v2.3.1 (the commit you linked has not been released yet), and that shouldn't impact you anyway. Your project is probably using the faulty tslib version to compile the tests you wrote.
So I don't think we can do much here.
Try to check if your build/tooling is not relying on this version of tslib. You can probably force a resolution to use v2.3.1 until a fixed tslib is released.
If you really think this is caused by VTU, try to put together a small reproduction on github and we'll take a look.
Describe the bug
With the latest release (rc.21) test cases using the spread operator will fail because of
TypeError: tslib_1.__spreadArray is not a function
. The issue is most likely coming directly from tslib (see issue linked below) and was introduced with the latest update of tslib (8d27843).To Reproduce
A reproduction can be a test case for a piece of code which uses a spread operator. Example:
TC will fail with
TypeError: tslib_1.__spreadArray is not a function
Expected behavior
Test case should pass / using the spread operator shouldn't be an issue.
Related information:
@vue/test-utils
version: 2.0.0-rc.21Vue
version: 3.2.33node
version: 18.1.0npm
(oryarn
) version: 8.8.0Additional context
It's probably upstreamed from microsoft/tslib#149
The text was updated successfully, but these errors were encountered: