2020-03-31 20:20:20 +08:00

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);
});