PATH:
opt
/
bitninja-threat-hunting
/
node_modules
/
tsconfig-paths
/
src
/
__tests__
import { createMatchPath } from "../match-path-sync"; import * as Tests from "./data/match-path-data"; describe("match-path-sync", () => { Tests.tests.forEach((t) => it(t.name, () => { const matchPath = createMatchPath( t.absoluteBaseUrl, t.paths, t.mainFields, t.addMatchAll ); const result = matchPath( t.requestedModule, (_: string) => t.packageJson, (name: string) => t.existingFiles.indexOf(name) !== -1, t.extensions ); expect(result).toBe(t.expectedPath); }) ); });
[-] match-path-sync.test.ts
[edit]
[+]
data
[-] filesystem.test.ts
[edit]
[-] tsconfig-named.json
[edit]
[+]
..
[-] try-path.test.ts
[edit]
[-] config-loader.test.ts
[edit]
[-] tsconfig-loader.test.ts
[edit]
[-] match-path-async.test.ts
[edit]
[-] mapping-entry.test.ts
[edit]