Skip to content

Commit efced2b

Browse files
committed
optim(test): don't need to check cache each time
- this doesn't test a new code path and the first test already tests the entire bundle for the fixture, so the other tests just repeat that
1 parent 666dc4c commit efced2b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

__tests__/integration/index.spec.ts

-14
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ test("integration - no errors - no declaration maps", async () => {
7070
clean: true,
7171
});
7272

73-
// populate the cache
74-
await genBundle("fixtures/no-errors/index.ts", { tsconfigOverride: noDeclarationMaps });
75-
const { output: outputWithCache } = await genBundle("fixtures/no-errors/index.ts", {
76-
tsconfigOverride: noDeclarationMaps,
77-
});
78-
expect(output).toEqual(outputWithCache);
79-
8073
expect(output[0].fileName).toEqual("index.ts");
8174
expect(output[1].fileName).toEqual("index.d.ts");
8275
expect(output[2].fileName).toEqual("some-import.d.ts");
@@ -92,13 +85,6 @@ test("integration - no errors - no declarations", async () => {
9285
clean: true,
9386
});
9487

95-
// populate the cache
96-
await genBundle("fixtures/no-errors/index.ts", { tsconfigOverride: noDeclarations });
97-
const { output: outputWithCache } = await genBundle("fixtures/no-errors/index.ts", {
98-
tsconfigOverride: noDeclarations,
99-
});
100-
expect(output).toEqual(outputWithCache);
101-
10288
expect(output[0].fileName).toEqual("index.ts");
10389
expect(output.length).toEqual(1); // no other files
10490
});

0 commit comments

Comments
 (0)