import { mergeRegex } from '../src/utils/mergeRegex'; describe('mergeRegex', () => { it('should merge regexp correctly', () => { expect(mergeRegex(/\.js$/, /\.ts$/)).toEqual(/\.js$|\.ts$/); }); it('should merge string correctly', () => { expect(mergeRegex('\\.js$', '\\.ts$')).toEqual(/\.js$|\.ts$/); }); });