mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
28051ebe91
* chore: init * chore: update logic * chore: update logic * docs: update doc * docs: fix all * docs: fix all * chore: add public path * chore: write file * docs: en * docs: all * chore: adjust * feat: changelog * docs: fix changelog * chore: update script * chore: fix lint * chore: fix lint * docs: update doc check logic * docs: update changelog * docs: update changelog * test: update test case * test: update test case * test: update snapshot
15 lines
529 B
TypeScript
15 lines
529 B
TypeScript
/* eslint-disable import/no-dynamic-require, global-require */
|
|
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();
|
|
});
|
|
});
|