refactor(electron): fix vitest and add behavior test (#4655)

This commit is contained in:
Alex Yang
2023-10-18 22:14:30 -05:00
committed by GitHub
parent b14a6bc29e
commit 97d8660a54
35 changed files with 256 additions and 349 deletions
-18
View File
@@ -1,18 +0,0 @@
import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { runCli } from '@magic-works/i18n-codegen';
import { beforeAll } from 'vitest';
beforeAll(async () => {
runCli(
{
watch: false,
cwd: join(fileURLToPath(import.meta.url), '../../../.i18n-codegen.json'),
},
error => {
console.error(error);
process.exit(1);
}
);
});