import { removeTags } from '../src/jsx' describe('removeTags', () => { test('removes outer JSX tag', () => { expect( removeTags(`
Some text

Other text

`) ).toMatchInlineSnapshot(` "
Some text

Other text

" `) }) test('works when the closing tag is repeated in a comment', () => { expect( removeTags(` {/* */}
Some text
`) ).toMatchInlineSnapshot(` " {/* */}
Some text
" `) }) })