Sha256: 06362410b5d19031a1b6d806755a512258be64a0d955a4b40104ea9b0b75ceeb

Contents?: true

Size: 627 Bytes

Versions: 53

Compression:

Stored size: 627 Bytes

Contents

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
      );
      // assert.equal(result, t.expectedPath);
      expect(result).toBe(t.expectedPath);
    })
  );
});

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
rapid_stack-0.2.0 templates/frontend/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
rapid_stack-0.1.1 templates/FrontEnd/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
rapid_stack-0.1.0 templates/FrontEnd/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.60 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.59 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.58 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.57 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.56 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.55 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.54 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.53 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.52 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.51 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.50 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.49 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.48 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.47 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.46 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.45 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts
immosquare-cleaner-0.1.44 node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts