lib/render.js
function(){
		var options = render.options,
			path = options.render = render._normalizePath( options.render );

		// Ensure render path actually exists
		fs.stat( path, function( e, stat ) {
			if ( e || ! stat || ! stat.isDirectory() ) {
				return munit.exit( 1, e, "'" + path + "' is not a directory" );
			}

			// Check for root munit config file
			fs.exists( path + '/munit.js', function( exists ) {
				if ( exists ) {
					munit.require( path + '/munit.js' );
				}

				// Initialize all files in test path for submodule additions
				render._renderPath( path, function( e ) {
					if ( e ) {
						return munit.exit( 1, e, "Unable to render test path" );
					}

					render._compile();
				});
			});
		});
	}
function(){
		var options = render.options,
			path = options.render = render._normalizePath( options.render );

		// Ensure render path actually exists
		fs.stat( path, function( e, stat ) {
			if ( e || ! stat || ! stat.isDirectory() ) {
				return munit.exit( 1, e, "'" + path + "' is not a directory" );
			}

			// Check for root munit config file
			fs.exists( path + '/munit.js', function( exists ) {
				if ( exists ) {
					munit.require( path + '/munit.js' );
				}

				// Initialize all files in test path for submodule additions
				render._renderPath( path, function( e ) {
					if ( e ) {
						return munit.exit( 1, e, "Unable to render test path" );
					}

					render._compile();
				});
			});
		});
	}
function ( ) { var options = render . options , path = options . render = render . _normalizePath ( options . render ) ; // Ensure render path actually exists fs . stat ( path , function ( e , stat ) { if ( e || ! stat || ! stat . isDirectory ( ) ) { return munit . exit ( 1 , e , "'" + path + "' is not a directory" ) ; } // Check for root munit config file fs . exists ( path + '/munit.js' , function ( exists ) { if ( exists ) { munit . require ( path + '/munit.js' ) ; } // Initialize all files in test path for submodule additions render . _renderPath ( path , function ( e ) { if ( e ) { return munit . exit ( 1 , e , "Unable to render test path" ) ; } render . _compile ( ) ; } ) ; } ) ; } ) ; }
Setup for rendering a path
Setup for rendering a path