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

Component compilation tests #156

Merged
merged 5 commits into from
Jul 17, 2023
Merged

Conversation

NullVoxPopuli
Copy link
Collaborator

@NullVoxPopuli NullVoxPopuli commented Jul 17, 2023

tests that various component scenarios are generated correctly by running tests in the test-app that use those components.

This will allow us to feel more comfortable with switching up the rollup config without worrying about breaking stuff in the future.

In an effort to keep PRs small, I've kept the number of tests added to a small amount, and will add more in follow up PRs.
I also adapted the default test setup to use the fixture helpers from a previous PR, so I didn't want to change too much at once

In particular, we need:

  • typescript
  • private / non-re-exported components
  • non-entrypoint files in general
  • keepAssets behavior
  • gjs / gts, even though we don't generate support for this by default
  • and more!


let contents = await dirContents(distDir);
it('build and test ', async () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

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

LGTM

@NullVoxPopuli NullVoxPopuli merged commit 85981bd into main Jul 17, 2023
@NullVoxPopuli NullVoxPopuli deleted the component-compilation-tests branch July 17, 2023 15:05
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.

2 participants