Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apollo-annotation/jbrowse-plugin-apollo

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo-annotation/jbrowse-plugin-apollo

Apollo plugin for JBrowse 2

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
174
decreased by-14.71%
Maintainers
0
Weekly downloads
 
Created
Source

jbrowse-plugin-apollo

Testing with cypress

These notes setup cypress and run tests. These notes are likely to change.

  • One time step: Outside the Apollo dev container install cypress. E.g. on your OS terminal (not vscode) run:
yarn --cwd packages/jbrowse-plugin-apollo add cypress --dev
yarn --cwd packages/jbrowse-plugin-apollo add cypress-mongodb --dev

Add these lines to the packageExtensions section of .yarnrc.yml:

  cypress-mongodb@*:
    dependencies:
      bson: "*"

Then run yarn again.


  • Start jbrowse: You may want to pull the latest code to be consistent with the GitHub workflow
cd /path/to/jbrowse-components
git pull
yarn --cwd products/jbrowse-web start
  • Start Apollo server. Within the docker container (i.e within vscode) and in distinct terminals run:
yarn --cwd packages/apollo-shared start
yarn --cwd packages/apollo-collaboration-server run cypress:start
yarn --cwd packages/jbrowse-plugin-apollo start

If above you change the name for the test database (apolloTestDb), change accordingly in commands.ts

  • Open cypress in the testing directory, i.e. where yo have the relevant package.json. Typically (again outside the dev container/vscode):
yarn --cwd packages/jbrowse-plugin-apollo run cypress open --config baseUrl=http://localhost:3000
  • For end-to-end testing, click "E2E Testing" -> Chrome -> Start E2E Testing. Click on one of the available test scripts.

To run tests locally in headless mode:

yarn --cwd packages/jbrowse-plugin-apollo run cypress run \
  --browser chrome \
  --config '{"baseUrl": "http://localhost:3000",
             "screenshotOnRunFailure": true,
             "video": true,
             "videoCompression": false,
             "retries": {"runMode": 0}}' \
  --spec cypress/e2e/editFeature.cy.ts

Keywords

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc