We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8585b commit 67bbb47Copy full SHA for 67bbb47
test/index.js
@@ -277,9 +277,12 @@ suite(pkg.name, () => {
277
assert(obj2 !== obj3)
278
assert(obj3 !== obj4)
279
assert(obj4 === obj5)
280
+ // Normalize path
281
+ const root = path.join(__dirname, '..')
282
+ obj5.$0 = path.relative(root, obj5.$0)
283
assert.deepStrictEqual(obj5, {
284
// yargs adds these top two
- $0: process.argv[1],
285
+ $0: path.relative(root, process.argv[1]),
286
_: [],
287
foo: 'foo',
288
bar: 'bar',
0 commit comments