Skip to content

Commit

Permalink
skip running browser tests for versions of node less than 16
Browse files Browse the repository at this point in the history
  • Loading branch information
catdad committed Nov 28, 2023
1 parent ef6132a commit 6f7e5c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/browser.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
// jsdom is not supported in node < 16, and...
// that's fine, because we don't need to run the browser
// tests everywhere, just at least in one env
if (Number(process.versions.node.split('.')[0]) < 16) {
return;
}

const JSDOM = require('jsdom').JSDOM;
const canvas = require('canvas');
const runTests = require('./run-tests.js');

describe('heic-convert (browser)', () => {
describe('heic-convert (browser image encoding)', () => {
before(() => {
const { window } = new JSDOM(``, {
pretendToBeVisual: true
Expand Down

0 comments on commit 6f7e5c0

Please sign in to comment.