-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Bug]: * is not iterable when using option: true #32033
Labels
Comments
This bug will brake all the tests that are using arrays of objects in the fixture. |
@bloodgang94 While we are figuring this out, you can do the following as a workaround: test.use({ links: [[{ name: "API" }, { name: "Docs" }], { scope: 'test' }] }); |
@dgozman am I right that doble array workaround passes two-dimentional array into the fixture and we need to strip it to use properly? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note from maintainers
To provide an option that is an array of objects, use the long-form notation by wrapping the value into an array:
Version
1.46.0
Steps to reproduce
spec.ts
fixture
Expected behavior
Fixture code completed
Actual behavior
TypeError: links is not iterable
Additional context
There was no such problem in version 1.45.There was no such problem in version 1.45. In debugging I see that it is not an array, but an element of an array
Environment
The text was updated successfully, but these errors were encountered: