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 845266d commit f4d860eCopy full SHA for f4d860e
test/lint-files.js
@@ -51,6 +51,19 @@ test('ignores dirs for empty extensions', async t => {
51
t.is(actual, expected);
52
t.is(results.errorCount, 1);
53
}
54
+
55
+ {
56
+ const cwd = path.join(__dirname, 'fixtures/nodir');
57
+ // Check Windows-style paths are working
58
+ const glob = 'nested\\*';
59
+ const results = await xo.lintFiles(glob, {cwd});
60
+ const {results: [fileResult]} = results;
61
62
+ const expected = 'fixtures/nodir/nested/index.js'.split('/').join(path.sep);
63
+ const actual = path.relative(__dirname, fileResult.filePath);
64
+ t.is(actual, expected);
65
+ t.is(results.errorCount, 1);
66
+ }
67
});
68
69
test.serial('cwd option', async t => {
0 commit comments