diff --git a/package.json b/package.json index 6f14abf..35c8c02 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "babel-core": "^6.26", "faucet-pipeline": "1.0.0-beta.0", "mkdirp": "^0.5.1", - "rollup": "^0.55.4", + "rollup": "^0.55.5", "rollup-plugin-commonjs": "^8.3.0", "rollup-plugin-node-resolve": "^3.0.2" }, diff --git a/test/unit/test_bundling.js b/test/unit/test_bundling.js index 66f5b3b..1ed04eb 100644 --- a/test/unit/test_bundling.js +++ b/test/unit/test_bundling.js @@ -281,17 +281,19 @@ console.log("[\\u2026] " + util); // eslint-disable-line no-console }); }); - it("should balk at non-relative paths in config", () => { + it("should balk at non-relative paths for target", () => { let assetManager = new MockAssetManager(FIXTURES_DIR); let entryPoint = "src/index.js"; let target = "dist/bundle.js"; let compile = (source, target) => faucetJS([{ source, target }], assetManager); - let fn = _ => compile(entryPoint, target); + let fn = _ => compile(`./${entryPoint}`, target); assert.throws(fn, /path must be relative/); - fn = _ => compile(`./${entryPoint}`, target); - assert.throws(fn, /path must be relative/); + // non-relative path is acceptable for entry point, but a suitable + // package path does not exist + fn = _ => compile(entryPoint, `./${target}`); + assert.throws(fn, /could not resolve/); return compile(`./${entryPoint}`, `./${target}`); });