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';
|
2025-07-01 13:48:02 +00:00
|
|
|
import { runCli } from './utils';
|
2025-07-01 08:37:07 +00:00
|
|
|
|
2025-09-02 10:02:47 +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 });
|
2025-07-01 13:48:02 +00:00
|
|
|
runCli('init', workDir);
|
|
|
|
|
expect(fs.existsSync(path.join(workDir, 'zenstack/schema.zmodel'))).toBe(true);
|
2025-07-01 08:37:07 +00:00
|
|
|
});
|
|
|
|
|
});
|