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

Add failing tests for missing component structures in no-this-in-template-only-components #2572

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elidupuis
Copy link
Contributor

This adds two failing test cases that should be allowed as valid component structures for the no-this-in-template-only-components rule:

  • nested structure from --component-structure=nested
  • legacy pod structure from --pod (is this still valid?)

This is related to #2321 and #2335.

Since this rule looks for external files I'm unsure how to proceed from here. For example, I've set the meta.filePath to mimic different component structure patterns but how can I setup the appropriate component class files to properly test the unique scenarios for this rule?

I've also added some initial logic to differentiate between the flat, nested, and pod component structures, but again, I'm unsure how to test this properly since it relies on the existence of external files.

This adds two simple cases that should be valid component structures:

- nested structure from --component-structure=nested
- legacy pod structure from --pod
This adds logic to look for component class files in the expected location
for nested and pod component structures, generated respectively by the
`--component-structure=nested` and `--pod` CLI flags.
@bmish bmish added the bug label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants