MCPcopy
hub / github.com/directus/directus / DisableTestCachingSetup

Function DisableTestCachingSetup

tests/blackbox/common/functions.ts:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import { ROLE, USER } from './variables';
10
11export function DisableTestCachingSetup() {
12 beforeEach(async () => {
13 process.env['TEST_NO_CACHE'] = 'true';
14 });
15
16 afterAll(async () => {
17 delete process.env['TEST_NO_CACHE'];
18 });
19}
20
21export function ClearCaches() {
22 describe('Clear Caches', () => {

Callers 7

crud.test.tsFile · 0.90
schema.test.tsFile · 0.90
crud.test.tsFile · 0.90
timezone.test.tsFile · 0.90
common.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected