Skip to content

Add support for non-JSON image mocks #913

@etpinard

Description

@etpinard

PR #850 made us realised that not all plotly.js features are JSON serializable e.g. Float32Array.

Possible solution: we could try to make the image tests routine and the test dashboard accept js files as mock. These js files would generate { data: [], layout: {} } object.

For example,

// in test/image/mocks/float32array.js

module.exports = function() {
  return {
    data: [{
      xy: new Float32Array([1,2,3,4])
    }]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions