Skip to content

cy.headless()

cy.headless — Core > Metadata and environment. Cytoscape.js signatures, parameters and return contract.

cy.headless — Core › Metadata and environment

Preview · Core › Metadata and environment

Read in the complete API reference · All API members

// Whether this instance has no container and therefore no GPU — the Node-testable mode, in which every model API works and the render, pick and image-export paths are no-ops or reject
cy.headless(): boolean

Whether this instance has no container and therefore no GPU — the Node-testable mode, in which every model API works and the render, pick and image-export paths are no-ops or reject.

Returns boolean

true when running headless

Example

console.log(cy.headless()); // true

Example graph and handle setup