mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
863f61d908
Co-authored-by: afc163 <afc163@gmail.com>
14 lines
466 B
TypeScript
14 lines
466 B
TypeScript
import path from 'path';
|
|
|
|
const testDist = process.env.LIB_DIR === 'dist' || process.env.CHANGELOG_TEST;
|
|
|
|
// This test is used to ensure changelog includes related component
|
|
describe('component changelog match snapshot', () => {
|
|
const testFn = testDist ? it : it.skip;
|
|
|
|
testFn('misc changelog snapshot', () => {
|
|
const changelog = require(path.join(process.cwd(), '.dumi', 'preset', 'misc-changelog.json'));
|
|
expect(changelog).toMatchSnapshot();
|
|
});
|
|
});
|