feat(application): complete dispo import operator flow

This commit is contained in:
2026-03-14 15:14:55 +01:00
parent 6a2f552ccb
commit 4dabb9d4ce
11 changed files with 1034 additions and 32 deletions
@@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest";
import { deriveRoleTokens } from "../use-cases/dispo-import/shared.js";
describe("deriveRoleTokens", () => {
it("recognizes common roster department and title variants", () => {
expect(deriveRoleTokens("2D Nuke")).toEqual(["2D"]);
expect(deriveRoleTokens("Motion Design")).toEqual(["2D"]);
expect(deriveRoleTokens("3D Modeling")).toEqual(["3D"]);
expect(deriveRoleTokens("Digital Producer")).toEqual(["PM"]);
expect(deriveRoleTokens("Head of Delivery")).toEqual(["PM"]);
expect(deriveRoleTokens("Digital Designer")).toEqual(["AD"]);
});
});