ERROR running force:lightning:lwc:test:create: No corresponding HTML file found #1254
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
owned by another team
The Salesforce CLI team does not own this work but will pass on the information to the correct team.
tracked elsewhere
The work is being tracked internally by Salesforce
Summary
I have a component which does not have .html.
It is a component that extends a Base/Parent component that takes care of the rendering.
Steps To Reproduce:
1 - Create a Base component
2 - Create a Child component that extends the base
3 - Delete the child's html file
4 - run
sfdx force:lightning:lwc:test:create
or use the vscode commandSFDX: Create Lightning Web Component Test
to create a test spec for your component5 - verify you get this error message:
ERROR running force:lightning:lwc:test:create: No corresponding HTML file found for
6 - create .html for your component
7 - repeat step 4
8 - verify that the test spec was created and no error message was displayed
Expected result
sfdx force:lightning:lwc:test:create
should not care about if there is or not a .html file.Actual result
sfdx force:lightning:lwc:test:create
does not allow us to create test spec because the component does not have .htmlSystem Information
sfdx-cli/7.122.1 win32-x64 node-v14.18.0
The text was updated successfully, but these errors were encountered: