Reset cache before expressions tests
This commit is contained in:
@@ -6,6 +6,7 @@ import {registerLogger} from "./log";
|
|||||||
import {getPositionFromCursor} from "./test-utils/cursor-position";
|
import {getPositionFromCursor} from "./test-utils/cursor-position";
|
||||||
import {TestLogger} from "./test-utils/logger";
|
import {TestLogger} from "./test-utils/logger";
|
||||||
import {testFileProvider} from "./test-utils/test-file-provider";
|
import {testFileProvider} from "./test-utils/test-file-provider";
|
||||||
|
import {clearParsedCache, clearWorkflowTemplateCache} from "./utils/workflow-cache";
|
||||||
|
|
||||||
const contextProviderConfig: ContextProviderConfig = {
|
const contextProviderConfig: ContextProviderConfig = {
|
||||||
getContext: async (context: string) => {
|
getContext: async (context: string) => {
|
||||||
@@ -24,6 +25,11 @@ const contextProviderConfig: ContextProviderConfig = {
|
|||||||
|
|
||||||
registerLogger(new TestLogger());
|
registerLogger(new TestLogger());
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
clearWorkflowTemplateCache();
|
||||||
|
clearParsedCache();
|
||||||
|
});
|
||||||
|
|
||||||
describe("expressions", () => {
|
describe("expressions", () => {
|
||||||
it("input extraction", () => {
|
it("input extraction", () => {
|
||||||
const test = (input: string) => {
|
const test = (input: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user