From 951c460ea7026de9ef6f4fbe9767b325f17be653 Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Tue, 26 Nov 2019 15:10:54 -0800 Subject: [PATCH] fix automation (#825) * update auto * ignore tests in node_modules * ignore tests in node_modules * correct changelog --- CHANGELOG.md | 3 ++- karma.conf.js | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89f13f75b..b0d9e3a7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,7 +52,7 @@ #### 🏠 Internal - `@jimp/cli`, `@jimp/core`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-color`, `@jimp/plugin-crop`, `@jimp/plugin-normalize`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/test-utils`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types` - - Upgrade nearly-all dev deps [#799](https://github.com/oliver-moran/jimp/pull/799) ([@popinguy](https://github.com/popinguy) [@hipstersmoothie](https://github.com/hipstersmoothie)) + - Upgrade nearly-all dev deps [#799](https://github.com/oliver-moran/jimp/pull/799) ([@crutchcorn](https://github.com/crutchcorn)) #### 📝 Documentation @@ -63,6 +63,7 @@ - [@popinguy](https://github.com/popinguy) - Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - Alexander Shcherbakov (alexander.shcherbakov@btsdigital.kz) +- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) --- diff --git a/karma.conf.js b/karma.conf.js index b2f00b766..57882dc76 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,5 +1,11 @@ // Karma configuration // Generated on Sat Jan 28 2017 19:40:10 GMT-0300 (BRT) +const { execSync } = require('child_process'); + +const allowed = `?(${execSync('ls packages', { encoding: 'utf8' }) + .trim() + .split('\n') + .join('|')})`; module.exports = function(config) { config.set({ @@ -16,12 +22,12 @@ module.exports = function(config) { }, preprocessors: { - 'packages/**/**/*.js': 'browserify' + [`packages/${allowed}/test/**/*.js`]: 'browserify' }, // list of files / patterns to load in the browser files: [ - './packages/**/test/*.js', + `./packages/${allowed}/test/**/*.test.js`, { pattern: 'packages/**/test/images/**/*', watched: false,