From 292a5dae072ecd4edf3f01def71dd83b88dfe2d4 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 9 Feb 2012 11:12:39 -0800 Subject: chore(slim-jim) add configuration --- angularFiles.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'angularFiles.js') diff --git a/angularFiles.js b/angularFiles.js index 1070299f..af859471 100644 --- a/angularFiles.js +++ b/angularFiles.js @@ -154,3 +154,22 @@ angularFiles = { 'test/jquery_remove.js' ] }; + +// Execute only in slim-jim +if (typeof JASMINE_ADAPTER !== 'undefined') { + // SlimJim config + files = [JASMINE_ADAPTER]; + angularFiles.jstd.forEach(function(pattern) { + // replace angular source + if (pattern === '@angularSrc') files = files.concat(angularFiles.angularSrc); + // ignore jstd files + else if (!/jstd-(scenario-)?adapter/.test(pattern)) files.push(pattern); + }); + + exclude = angularFiles.jstdExclude; + + autoWatch = true; + autoWatchInterval = 1; + logLevel = LOG_ERROR; + logColors = true; +} -- cgit v1.2.3