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:
Ben McCann
2024-01-30 15:23:33 -08:00
committed by GitHub
parent 1bfef200a5
commit 9c7dee8551
21 changed files with 2447 additions and 4743 deletions

View File

@@ -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)) {