ant-design/tests/changelog.test.ts
二货爱吃白萝卜 28051ebe91
docs: Component page support history log (#43974)
* 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
2023-08-03 10:58:38 +08:00

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