mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-02 02:00:49 +08:00
refactor(electron): fix vitest and add behavior test (#4655)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user