Sha256: 0eeee227b6cc9f0f6c38a25318aef9c02e4a21e6c1f10565b44c835680699ade

Contents?: true

Size: 753 Bytes

Versions: 41

Compression:

Stored size: 753 Bytes

Contents

import { createMatchPathAsync } from "../match-path-async";
import * as Tests from "./data/match-path-data";

describe("match-path-async", () => {
  Tests.tests.forEach((t) =>
    it(t.name, (done) => {
      const matchPath = createMatchPathAsync(
        t.absoluteBaseUrl,
        t.paths,
        t.mainFields,
        t.addMatchAll
      );
      matchPath(
        t.requestedModule,
        (_path, callback) => callback(undefined, t.packageJson),
        (path, callback) =>
          callback(undefined, t.existingFiles.indexOf(path) !== -1),
        t.extensions,
        (_err, result) => {
          // assert.equal(result, t.expectedPath);
          expect(result).toBe(t.expectedPath);
          done();
        }
      );
    })
  );
});

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.50 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.49 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.48 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.47 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.46 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.45 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.44 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.43 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.42 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.41 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.40 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.39 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.38 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.32 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.31 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.30 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.29 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.28 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts
immosquare-cleaner-0.1.27 node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts