1
0
mirror of synced 2026-03-24 03:38:34 +08:00
Files
tmagic-editor/packages/cli/tests/Core.spec.ts

19 lines
381 B
TypeScript

import path from 'node:path';
import { describe, expect, test } from 'vitest';
import Core from '../src/Core';
describe('Core', () => {
test('instance', () => {
const core = new Core({
packages: [],
source: './a',
temp: './b',
});
expect(core).toBeInstanceOf(Core);
expect(core.dir.temp()).toBe(path.join(process.cwd(), './a/b'));
});
});