Skip to content

Commit b70c38e

Browse files
committed
Clear the shared serviceCache after each service spec test
1 parent d5a3b96 commit b70c38e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/service.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ beforeAll(() => {
2323
});
2424

2525
describe("Service", () => {
26+
afterEach(() => {
27+
// Tests share the module-level cache; clear it so no test depends on
28+
// entries cached by another
29+
serviceCache.clear();
30+
});
31+
2632
describe("loadService", () => {
2733
it("should load a valid service", () => {
2834
const customer = newCustomer();

0 commit comments

Comments
 (0)