File size: 466 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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();
  });
});