mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
25 lines
624 B
TypeScript
25 lines
624 B
TypeScript
import test from 'ava';
|
|
import scan from '../src/scan';
|
|
import { getFromFixtures } from './helpers';
|
|
|
|
const multiExportedComptPath = getFromFixtures('multiple-exported-component');
|
|
const singleExportedComptPath = getFromFixtures('single-exported-component');
|
|
|
|
test.serial('scan multiple exported component', async t => {
|
|
|
|
const actual = await scan({
|
|
entry: multiExportedComptPath,
|
|
accesser: 'local',
|
|
});
|
|
t.snapshot(actual);
|
|
});
|
|
|
|
test.serial('scan single exported component', async t => {
|
|
|
|
const actual = await scan({
|
|
entry: singleExportedComptPath,
|
|
accesser: 'local',
|
|
});
|
|
t.snapshot(actual);
|
|
});
|