zenstack/packages/cli/test/init.test.ts

15 lines
497 B
TypeScript
Raw Permalink Normal View History

2025-07-01 08:37:07 +00:00
import fs from 'node:fs';
import path from 'node:path';
import tmp from 'tmp';
import { describe, expect, it } from 'vitest';
import { runCli } from './utils';
2025-07-01 08:37:07 +00:00
// skipping due to timeout during CI
describe.skip('Cli init command tests', () => {
2025-07-01 08:37:07 +00:00
it('should create a new project', () => {
const { name: workDir } = tmp.dirSync({ unsafeCleanup: true });
runCli('init', workDir);
expect(fs.existsSync(path.join(workDir, 'zenstack/schema.zmodel'))).toBe(true);
2025-07-01 08:37:07 +00:00
});
});