UNPKG

ractive

Version:

Next-generation DOM manipulation

23 lines (13 loc) 547 B
module.exports = function ( grunt ) { 'use strict'; var qunitConfig = {}; grunt.file.expand( 'test/modules/**/*.js' ).forEach( function ( path ) { var testName = /test\/modules\/(.+)\.js/.exec( path )[1]; if ( testName === 'index' ) { testName = 'all'; } qunitConfig[ testName.replace(/\//g, '-') ] = '<%= tmpDir %>/' + path.replace( '/modules/', '/tests/' ).replace( '.js', '.html' ); }); qunitConfig.all = '<%= tmpDir %>/test/tests/index.html'; return qunitConfig; };