@ -8,6 +8,6 @@ module.exports = {
skip: os.platform() !== 'win32',
description: "can load config with cwd that doesn't match realpath",
command: 'rollup -c',
cwd: process.cwd().replace( /^[A-Z]:\\/ig, toggleCase ),
cwd: __dirname.replace( /^[A-Z]:\\/i, toggleCase ),
execute: true
};
@ -1,13 +1,11 @@
var path = require( 'path' );
var assert = require( 'assert' );
var pathRelativeToCwd = path.relative( process.cwd(), path.resolve( __dirname, '_actual/bundle.js' ) );
module.exports = {
description: 'source paths are relative (#344)',
description: 'source paths are relative with relative dest (#344)',
options: {
moduleName: 'myModule',
dest: pathRelativeToCwd
dest: path.resolve( '_actual/bundle.js' )
},
test: function ( code, map ) {
assert.deepEqual( map.sources, [ '../main.js' ]);
@ -338,6 +338,7 @@ describe( 'rollup', function () {
if ( dir[0] === '.' ) return; // .DS_Store...
describe( dir, function () {
process.chdir( SOURCEMAPS + '/' + dir );
var config = loadConfig( SOURCEMAPS + '/' + dir + '/_config.js' );
var entry = path.resolve( SOURCEMAPS, dir, 'main.js' );
@ -349,6 +350,7 @@ describe( 'rollup', function () {
PROFILES.forEach( function ( profile ) {
( config.skip ? it.skip : config.solo ? it.only : it )( 'generates ' + profile.format, function () {
return rollup.rollup( options ).then( function ( bundle ) {
var options = extend( {}, {
format: profile.format,