samvera/serverless-iiif

View on GitHub
scripts/test.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

process.env.tiffBucket = 'test-bucket';

const jest = require('jest');
const argv = process.argv.slice(2);

// Watch unless on CI or in coverage mode
if (!process.env.CI && argv.indexOf('--coverage') < 0) {
  argv.push('--watch');
}

jest.run(argv);