* initial commit? * Address PR feedback on extractor discovery and startup resilience * Address latest PR review comments * fix city resolution fallback when input parses empty * address PR feedback on extractor registry and pipeline validation * address copilot comments on manifests and registry startup * fix extractor discovery export handling and env isolation in tests * enforce duplicate manifest id failures in strict mode * Fix remaining extractor registry and runtime review comments * docs * docs * test all, logic remains in extractors * Address PR review feedback on extractor registry and validation * Revert extractor moduleResolution to bundler * Enforce shared city filtering across all discovery sources * Deduplicate extractor strict city post-filtering
16 lines
586 B
TypeScript
16 lines
586 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { shouldApplyStrictLocationFilter } from "../src/run";
|
|
|
|
describe("hiringcafe location query strictness", () => {
|
|
it("enables strict filtering when city differs from country", () => {
|
|
expect(shouldApplyStrictLocationFilter("Leeds", "united kingdom")).toBe(
|
|
true,
|
|
);
|
|
});
|
|
|
|
it("disables strict filtering when location is country-level", () => {
|
|
expect(shouldApplyStrictLocationFilter("UK", "united kingdom")).toBe(false);
|
|
expect(shouldApplyStrictLocationFilter("United States", "us")).toBe(false);
|
|
});
|
|
});
|