mirror of
https://github.com/immich-app/immich.git
synced 2025-11-16 18:22:40 +09:00
chore: migrate CLI to ESM and vitest (#6777)
* chore: migrate CLI to ESM and vitest * fix lint * update github workflow * format
This commit is contained in:
@@ -27,7 +27,7 @@ export const setup = async () => {
|
||||
return api;
|
||||
};
|
||||
|
||||
export const spyOnConsole = () => jest.spyOn(console, 'log').mockImplementation();
|
||||
export const spyOnConsole = () => vi.spyOn(console, 'log').mockImplementation(() => {});
|
||||
|
||||
export const createTestAuthFile = async (contents: string) => {
|
||||
if (!fs.existsSync(TEST_CONFIG_DIR)) {
|
||||
|
||||
Reference in New Issue
Block a user