@zgeoff/oxlint-config 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/test-beside-module.js +3 -1
package/package.json
CHANGED
package/test-beside-module.js
CHANGED
|
@@ -2,7 +2,9 @@ import { readdirSync, statSync } from 'node:fs';
|
|
|
2
2
|
import { basename, dirname, join, relative, sep } from 'node:path';
|
|
3
3
|
import resolveRepoRoot from './resolve-repo-root.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// a browser suite (`<name>.browser.test.ts`) tests the same module as
|
|
6
|
+
// `<name>.test.ts`, and the suffix lets a runner put it in its own lane
|
|
7
|
+
const testFilePattern = /^(?<base>.+?)(?:\.browser)?\.test\.tsx?$/u;
|
|
6
8
|
|
|
7
9
|
// suites that run the whole program have no single module to sit beside
|
|
8
10
|
const exemptRootDirs = new Set(['e2e', 'evals']);
|