Reset cache for all tests

This commit is contained in:
Jacob Wallraff
2023-03-06 11:52:21 -08:00
parent 6aaeefb9c2
commit 70c122b0e4
11 changed files with 57 additions and 2 deletions
+6
View File
@@ -5,9 +5,15 @@ import {registerLogger} from "./log";
import {getPositionFromCursor} from "./test-utils/cursor-position";
import {TestLogger} from "./test-utils/logger";
import {ValueProviderConfig, ValueProviderKind} from "./value-providers/config";
import {clearParsedCache, clearWorkflowTemplateCache} from "./utils/workflow-cache";
registerLogger(new TestLogger());
beforeEach(() => {
clearWorkflowTemplateCache();
clearParsedCache();
});
describe("completion", () => {
it("runs-on", async () => {
const input = "on: push\njobs:\n build:\n runs-on: |";