mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 09:41:46 +00:00
05e1271376
Enables the vitest/prefer-expect-resolves oxlint rule and applies its autofix across the spec suite.
28 lines
848 B
TypeScript
28 lines
848 B
TypeScript
import { partial } from '~test/util.ts';
|
|
import { GlobalConfig } from '../../../config/global.ts';
|
|
import type { RepositoryCacheConfig } from '../../../config/types.ts';
|
|
import type { WorkerPlatformConfig } from './apis.ts';
|
|
import { initializeCaches } from './cache.ts';
|
|
|
|
describe('workers/repository/init/cache', () => {
|
|
describe('initializeCaches()', () => {
|
|
let config: WorkerPlatformConfig;
|
|
|
|
beforeEach(() => {
|
|
config = {
|
|
repository: '',
|
|
repositoryCache: partial<RepositoryCacheConfig>(),
|
|
repositoryCacheType: 'local',
|
|
repoFingerprint: '0123456789abcdef',
|
|
defaultBranch: 'main',
|
|
isFork: false,
|
|
};
|
|
GlobalConfig.set({ cacheDir: '' });
|
|
});
|
|
|
|
it('initializes', async () => {
|
|
await expect(initializeCaches(config)).resolves.toBeUndefined();
|
|
});
|
|
});
|
|
});
|