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 Plugin Tests #1601

Conversation

josephfusco
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Oct 10, 2023

⚠️ No Changeset found

Latest commit: 77574e2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@wpengine wpengine deleted a comment from github-actions bot Oct 10, 2023
@josephfusco josephfusco marked this pull request as ready for review October 10, 2023 16:03
@josephfusco josephfusco requested a review from a team as a code owner October 10, 2023 16:03
@josephfusco josephfusco merged commit 974984e into nojira-add-blockset-command Oct 10, 2023
14 checks passed
@josephfusco josephfusco deleted the nojira-add-blockset-command-plugin-tests branch October 10, 2023 16:04
@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for @faustwp/block-support-example

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 202.88 KB (🟢 -40.95 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for @faustwp/getting-started-example

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

theodesp added a commit that referenced this pull request Oct 18, 2023
* Add new block-support example project

Signed-off-by: Joe Fusco <[email protected]>

* Auto analyze new project

Signed-off-by: Joe Fusco <[email protected]>

* Update dependencies

Signed-off-by: Joe Fusco <[email protected]>

* Remove hardcoded theme.json

Signed-off-by: Joe Fusco <[email protected]>

* Ignore globalStylesheet.css

Signed-off-by: Joe Fusco <[email protected]>

* Reduce example to just block things

Signed-off-by: Joe Fusco <[email protected]>

* Add newline to EOF

Signed-off-by: Joe Fusco <[email protected]>

* Reduce example

Signed-off-by: Joe Fusco <[email protected]>

* Update lockfile after merge

Signed-off-by: Joe Fusco <[email protected]>

* Constrain layout using existing core class

Signed-off-by: Joe Fusco <[email protected]>

* Not being used

Signed-off-by: Joe Fusco <[email protected]>

* Irrelevant comment

Signed-off-by: Joe Fusco <[email protected]>

* Scaffold out new plugin files

Signed-off-by: Joe Fusco <[email protected]>

* Add new dependencies

Signed-off-by: Joe Fusco <[email protected]>

* Add blockset command

Signed-off-by: Joe Fusco <[email protected]>

* Add new command to block support example

Signed-off-by: Joe Fusco <[email protected]>

* Register new REST endpoint to handle unzipping blocks

Signed-off-by: Joe Fusco <[email protected]>

* Fix example project deps

Signed-off-by: Joe Fusco <[email protected]>

* Fix namespace issue

Signed-off-by: Joe Fusco <[email protected]>

* Refactor into testable functions

Signed-off-by: Joe Fusco <[email protected]>

* Mock custom block

Signed-off-by: Joe Fusco <[email protected]>

* Ignore .faust

Signed-off-by: Joe Fusco <[email protected]>

* Fix namespacing issues in WP plugin

Signed-off-by: Joe Fusco <[email protected]>

* Clean up comments

Signed-off-by: Joe Fusco <[email protected]>

* Improve readability

Signed-off-by: Joe Fusco <[email protected]>

* Add deps

Signed-off-by: Joe Fusco <[email protected]>

* Add second block example to test blockset

Signed-off-by: Joe Fusco <[email protected]>

* Export functions for tests

Signed-off-by: Joe Fusco <[email protected]>

* Remove unused jest-dom in CLI package

Signed-off-by: Joe Fusco <[email protected]>

* Remove unused package

Signed-off-by: Joe Fusco <[email protected]>

* Add new utility function

Signed-off-by: Joe Fusco <[email protected]>

* Ignore for tests

Signed-off-by: Joe Fusco <[email protected]>

* Refactor blockset command

Signed-off-by: Joe Fusco <[email protected]>

* New line at EOF

Signed-off-by: Joe Fusco <[email protected]>

* Linting fixes

Signed-off-by: Joe Fusco <[email protected]>

* Return true upon success

Signed-off-by: Joe Fusco <[email protected]>

* Use available logging methods

Signed-off-by: Joe Fusco <[email protected]>

* Remove code already in handle_uploaded_blockset & setup translations

Signed-off-by: Joe Fusco <[email protected]>

* Add missing dep

Signed-off-by: Joe Fusco <[email protected]>

* Linting fixes

Signed-off-by: Joe Fusco <[email protected]>

* Linting fixes

Signed-off-by: Joe Fusco <[email protected]>

* Resolve merge conflicts

Signed-off-by: Joe Fusco <[email protected]>

* Feat: Add compileBlocks step.

* Automatically load custom blocks from uploads

Signed-off-by: Joe Fusco <[email protected]>

* Fix enqueues from the uploads directory

Signed-off-by: Joe Fusco <[email protected]>

* Fix linting issues

Signed-off-by: Joe Fusco <[email protected]>

* Feat: Check if project uses yarn when compiling blocks

* Use enqueue_block_editor_assets to avoid unnecessary runs

Signed-off-by: Joe Fusco <[email protected]>

* Remove explicit registration using args

Signed-off-by: Joe Fusco <[email protected]>

* Add required titles

Signed-off-by: Joe Fusco <[email protected]>

* Correct the asset src for the blocks in uploads

Signed-off-by: Joe Fusco <[email protected]>

* Linting fixes

Signed-off-by: Joe Fusco <[email protected]>

* Remove unused functions

Signed-off-by: Joe Fusco <[email protected]>

* Deps: Add wp-scripts in peer deps.

* Chore: Add changeset.

* Deps: Update rimraf

* Chore: Update deps.

* Refactor: Update hasYarn

* Chore: Update package-lock

* Chore: update package-lock again

* Chore: add missing export.

* Chore: remove faust blockset from predev,prebuild

* Fix blocks missing from WPGraphQL & prevent unnecessary block registrations

Signed-off-by: Joe Fusco <[email protected]>

* Fix linting issues

Signed-off-by: Joe Fusco <[email protected]>

* Example: Add block using `registerFaustBlock` helper

* Refactor: Update block comments

* Add plugin tests

Signed-off-by: Joe Fusco <[email protected]>

* Add Plugin Tests (#1601)

* Add plugin tests

Signed-off-by: Joe Fusco <[email protected]>

* Add test coverage for utility functions

Signed-off-by: Joe Fusco <[email protected]>

---------

Signed-off-by: Joe Fusco <[email protected]>

* Remove orphaned test

Signed-off-by: Joe Fusco <[email protected]>

* Track possibleTypes & globalStylesheet generated files

Signed-off-by: Joe Fusco <[email protected]>

* Build possibleTypes

Signed-off-by: Joe Fusco <[email protected]>

* Add @wordpress/scripts to block-support-example

Signed-off-by: Joe Fusco <[email protected]>

* Auto run blockset in block example

Signed-off-by: Joe Fusco <[email protected]>

* Ignore Faust generated files

Signed-off-by: Joe Fusco <[email protected]>

* Remove previously tracked file

Signed-off-by: Joe Fusco <[email protected]>

* Fix version regression from merge conflict

Signed-off-by: Joe Fusco <[email protected]>

* Refactor: Change block-C as block-B

* Fix: Remove @ts-ignore comment.

* CI/CD fix tests with faustwp-cli

* Example block support: Remove blockset.

* Chore: Code review fixes.

* Chore: add Component.fragments

* Chore: Update package-lock.json

* Chore: Add gql missing import.

* Tests: Update fromThemeJson.test snapshot.

* Style: Add block styles in front-end

* Styles: Consistent styles fixed.

* CI/CD: Fix test cases.

* Test: Update CoreCode test snapshot.

* CI/CD: Update types in Toolbar.test.tsx

* CI/CD: Remove examples/next/block-support from bundle analysis.

---------

Signed-off-by: Joe Fusco <[email protected]>
Co-authored-by: theodesp <[email protected]>
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.

1 participant