Skip to content

Commit

Permalink
Non-integration uses of node-canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jun 19, 2022
1 parent 73d460f commit 62a4049
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/wiggle/src/DensityRenderer/DensityRenderer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import SimpleFeature from '@jbrowse/core/util/simpleFeature'
import { renderToAbstractCanvas } from '@jbrowse/core/util/offscreenCanvasUtils'
import DensityRenderer, { configSchema, ReactComponent } from '.'

import { Image, createCanvas } from 'canvas'

global.nodeImage = Image
global.nodeCreateCanvas = createCanvas

const pluginManager = {}
const renderer = new DensityRenderer({
name: 'DensityRenderer',
Expand Down
5 changes: 5 additions & 0 deletions plugins/wiggle/src/XYPlotRenderer/XYPlotRenderer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import SimpleFeature from '@jbrowse/core/util/simpleFeature'
import { renderToAbstractCanvas } from '@jbrowse/core/util/offscreenCanvasUtils'
import XYPlotRenderer, { configSchema, ReactComponent } from '.'

import { Image, createCanvas } from 'canvas'

global.nodeImage = Image
global.nodeCreateCanvas = createCanvas

test('several features', async () => {
const pluginManager = {}
const renderer = new XYPlotRenderer({
Expand Down

0 comments on commit 62a4049

Please sign in to comment.