Since this plugin depends on the save & edit functions of the Code block, we need to ensure that we're always
[x] Add @wordpress/block-library as a devDependency
[x] Add a test which simply compares the hashes of the files in the code directory with a given snapshot.
[x] Add a command which updates the snapshot.
In this way, whenever a change is made to the Code block and Dependabot updates the dependency, we'll automatically be alerted of a change that needs to be verified. If nothing needs to change, then the snapshot can be updated and committed with the dependency update PR.
Since this plugin depends on the
save
&edit
functions of the Code block, we need to ensure that we're always@wordpress/block-library
as adevDependency
code
directory with a given snapshot.In this way, whenever a change is made to the Code block and Dependabot updates the dependency, we'll automatically be alerted of a change that needs to be verified. If nothing needs to change, then the snapshot can be updated and committed with the dependency update PR.