mirror of
https://github.com/zenstackhq/zenstack
synced 2026-05-24 10:08:55 +00:00
* fix: schema generation for unsupported field type * fix build * update * more tests * update
13 lines
455 B
TypeScript
13 lines
455 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';
|
|
|
|
describe('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);
|
|
});
|
|
});
|