Skip to content

feat(cli): add option to include functional test suite#806

Merged
chanceaclark merged 1 commit intomainfrom
feat/functional-cli
Apr 23, 2024
Merged

feat(cli): add option to include functional test suite#806
chanceaclark merged 1 commit intomainfrom
feat/functional-cli

Conversation

@chanceaclark
Copy link
Copy Markdown
Contributor

@chanceaclark chanceaclark commented Apr 22, 2024

What/Why?

Adds the ability to include the functional test suite when creating a Catalyst repo from the CLI. We are about to migrate the tests over to the core app which this PR adds some preparation for it from the CLI perspective.

Warning

Just note that the functional test suite won't actually be included until we port it over. This is prep work for it actually being added.

Testing

Screenshot 2024-04-23 at 11 27 26

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 22, 2024

🦋 Changeset detected

Latest commit: 30e36bf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/create-catalyst Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2024 3:36pm
catalyst-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2024 3:36pm
catalyst-test-store ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2024 3:36pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 3:36pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 3:36pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 3:36pm

Copy link
Copy Markdown
Contributor Author

@chanceaclark chanceaclark left a comment

Choose a reason for hiding this comment

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

I still need to see if there are any other TSConfig things that might need to changed, but that will have to wait till we have a small example of the tests running in apps/core.

Comment thread packages/create-catalyst/src/utils/clone-catalyst.ts Outdated
@chanceaclark chanceaclark added do not merge draft Ready for initial review labels Apr 22, 2024
@chanceaclark chanceaclark marked this pull request as ready for review April 22, 2024 21:42
@chanceaclark chanceaclark requested a review from a team April 22, 2024 21:42
@chanceaclark chanceaclark added do not merge and removed do not merge draft Ready for initial review labels Apr 22, 2024
Copy link
Copy Markdown
Contributor

@jorgemoya jorgemoya left a comment

Choose a reason for hiding this comment

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

Looks right to me.

Comment on lines 145 to 146
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Using regex instead as it could be multi-lined. Pretty sure eslint --fix will take care of the formatting. If not we can always revisit it and do some cleanup here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Here were the regex test cases I used:
Screenshot 2024-04-23 at 11 28 52

@github-actions
Copy link
Copy Markdown
Contributor

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-1wbzr5qv6-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟢 Performance 100
🟢 Accessibility 100
🟠 Best practices 78
🟢 SEO 90

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟢 Performance 99
🟢 Accessibility 100
🟠 Best practices 78
🟢 SEO 92

@chanceaclark chanceaclark requested a review from a team April 23, 2024 17:42
@chanceaclark chanceaclark added this pull request to the merge queue Apr 23, 2024
Merged via the queue into main with commit 5655f81 Apr 23, 2024
@chanceaclark chanceaclark deleted the feat/functional-cli branch April 23, 2024 18:21
@github-actions github-actions Bot mentioned this pull request Apr 23, 2024
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.

3 participants