You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
529 B
TypeScript
15 lines
529 B
TypeScript
2 years ago
|
/* 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();
|
||
|
});
|
||
|
});
|