Skip to content

Commit

Permalink
Extract PNP test from inline script to it’s own file to avoid cross p…
Browse files Browse the repository at this point in the history
…latform escaping issues
  • Loading branch information
stefanpenner committed Feb 27, 2019
1 parent cb9c0a4 commit 9d94174
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/index-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,16 @@ describe('resolve-package-path', function() {
app.pkg.private = true;
app.pkg.name
app.pkg.scripts = {
test: "node -r ./.pnp.js -e 'require(\"resolve-package-path\")(\"ember-source-channel-url\", __dirname)'"
test: "node -r ./.pnp.js ./test.js"
};
app.pkg.installConfig = {
pnp: true
};
app.addDependency('ember-source-channel-url', '1.1.0');
app.addDependency('resolve-package-path', 'link:' + path.join(__dirname, '..'));
app.files = {
'test.js': 'require("resolve-package-path")("ember-source-channel-url", __dirname)'
};
});

app.writeSync();
Expand Down

0 comments on commit 9d94174

Please sign in to comment.