Add Cypress test of package that uses embedded components #2649
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2647
This adds a package in
component_test
off the monorepo root that uses create-react-app to make an app with an embedded react-linear-genome-view. When the whole repo is built in CI, each package creates a.tgz
of itself and copies it to the test package. Then, when all the packages are build, thecomponent_test
packages is built and is set to resolve all the@jbrowse
packages to their new builds. That way it's using all the most recent versions of the built packages.Then in CI it runs a Cypress test to make sure the package built correctly.
This PR also fixes several cases where files in
@jbrowse/core
were using imports likeimport { ConfigurationSchema } from '@jbrowse/core/configuration'
when they should be local imports likeimport { ConfigurationSchema } from './configuration'
, since those caused thecomponent_test
package to break.