(code, { plugins = [], ...options } = {})
| 2 | import transformJsxToHtmPlugin from 'babel-plugin-transform-jsx-to-htm'; |
| 3 | |
| 4 | function compile(code, { plugins = [], ...options } = {}) { |
| 5 | return transform(code, { |
| 6 | babelrc: false, |
| 7 | configFile: false, |
| 8 | sourceType: 'module', |
| 9 | plugins: [ |
| 10 | ...plugins, |
| 11 | [transformJsxToHtmPlugin, options] |
| 12 | ] |
| 13 | }).code; |
| 14 | } |
| 15 | |
| 16 | describe('babel-plugin-transform-jsx-to-htm', () => { |
| 17 | describe('import', () => { |
no test coverage detected
searching dependent graphs…