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])
}]
}
}
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
jsfiles as mock. Thesejsfiles would generate{ data: [], layout: {} }object.For example,