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 dc26aef commit d6b66d9Copy full SHA for d6b66d9
packages/eslint-plugin-qwik/qwik.unit.ts
@@ -42,7 +42,13 @@ interface InvalidTestCase extends TestCase {
42
}
43
await (async function setupEsLintRuleTesters() {
44
// list './test' directory content and set up one RuleTester per directory
45
- const testDir = join(dirname(new URL(import.meta.url).pathname), './tests');
+ let testDir = join(dirname(new URL(import.meta.url).pathname), './tests');
46
+ const isWindows = process.platform === 'win32';
47
+ if (isWindows && testDir.startsWith('\\')) {
48
+ // in Windows testDir starts with a \ causing errors
49
+ testDir = testDir.substring(1);
50
+ }
51
+
52
const ruleNames = await readdir(testDir);
53
for (const ruleName of ruleNames) {
54
const rule = rules[ruleName];
0 commit comments