UNPKG

@sentry/wizard

Version:

Sentry wizard helping you to configure your project

16 lines (13 loc) 472 B
/// <reference types="jest" /> import { exists, matchesContent } from '../File'; describe('SentryCli', () => { test('exists', () => { expect(exists('**/File.ts')).toBeTruthy(); expect(exists('Filea.ts')).toBeFalsy(); }); test('matchesContent', () => { expect(matchesContent('**/File.ts', /exists/g)).toBeTruthy(); expect(matchesContent('**/File.ts', /blabla/g)).toBeFalsy(); expect(matchesContent('Filea.ts', /exists/g)).toBeFalsy(); }); });