Skip to content

Allow multiple utils modules on Shared Settings #315

Closed
@Belco90

Description

@Belco90

It would be interesting to allow "testing-library/utils-module" to support multiple modules. For doing so:

  • "testing-library/utils-module" should expect an array of strings
  • all tests cases setting "testing-library/utils-module" must be updated
  • add new test cases in fake rule to test several "testing-library/utils-module" set
  • update isAggressiveModuleReportingEnabled to check array length is greater than 0
  • update detectionInstructions to check if some of the utils modules end with corresponding string.
  • update migrating guide to reflect this change

This example makes it seem like this can only be a single string and not an array? Not sure if it'd add too much complexity to support multiple utils modules.

For example a user could have many custom selectors each imported from a different module. Probably not common, but just calling it out.

Originally posted by @CreativeTechGuy in #312 (comment)

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions