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

Move test folders #155

Merged
merged 5 commits into from
Nov 13, 2024
Merged

Move test folders #155

merged 5 commits into from
Nov 13, 2024

Conversation

sfdctaka
Copy link
Contributor

What does this PR do?

Moved test folders for each package. Making them sit at the level as respective src folders.

@sfdctaka sfdctaka requested a review from a team as a code owner November 12, 2024 18:59
"composite": true
},

"include": ["src"],
"include": ["src", "test", "testFixture/**/*.json"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test fixture needs to be specified in include, otherwise can't be found.

@haifeng-li-at-salesforce
Copy link
Contributor

The code functions as expected, but I have some concerns about the structure of the compiled code.

The main goal of relocating the test folder was to prevent it from being included in the vsix package. However, after moving test to the same directory level as src, the test folder still ends up generated and included in the compiled out directory. Does this outcome go against our original intention?

Is there a way to run all the tests without having them included in the out folder, similar to to the approach used in https://github.com/salesforce/eslint-plugin-lwc-mobile ?

Copy link
Contributor

@haifeng-li-at-salesforce haifeng-li-at-salesforce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The vsce has a way to exclude folders. Changes looks great to me. Good job!

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@ben-zhang-at-salesforce ben-zhang-at-salesforce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job! thx for moving the tests out of src

@sfdctaka sfdctaka merged commit b3f46ad into salesforce:main Nov 13, 2024
7 checks passed
@sfdctaka sfdctaka deleted the moveTestFolders branch November 13, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants