zenstack/packages/cli/test/init.test.ts
Yiming Cao e013774347
chore: fix telemetry env var for publish CI (#230)
* chore: fix telemetry env var for publish CI

* update test and config

* update

* remove unused settings
2025-09-02 18:02:47 +08:00

14 lines
497 B
TypeScript

import fs from 'node:fs';
import path from 'node:path';
import tmp from 'tmp';
import { describe, expect, it } from 'vitest';
import { runCli } from './utils';
// skipping due to timeout during CI
describe.skip('Cli init command tests', () => {
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);
});
});