initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
23
github/codeql-action-v1/node_modules/tsconfig-paths/test/match-path-sync-tests.ts
generated
vendored
Normal file
23
github/codeql-action-v1/node_modules/tsconfig-paths/test/match-path-sync-tests.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { assert } from "chai";
|
||||
import { createMatchPath } from "../src/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, // fileExists
|
||||
t.extensions
|
||||
);
|
||||
assert.equal(result, t.expectedPath);
|
||||
})
|
||||
);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue