"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@babel/core");
const _1 = __importDefault(require("."));
describe('babel-react', () => {
    it('spec', function () {
        const rs = (0, core_1.transform)(`
    const arr = new Array(100).fill(1)
    const elem = <div>
      <h1 title={'abc'}>Hello World</h1>
      <Tabs>
      <Tabs.TabPane key={'tool'} tab={'物料'}>
        <p>物料</p>
        {arr.map((x, i) => (
          <p key={i}>content_{i}</p>
        ))}
        <p className='empty'></p>
      </Tabs.TabPane>
      <Tabs.TabPane key={'attr'} tab={'属性'}></Tabs.TabPane>
      </Tabs>
    </div>
    `, {
            filename: '/file.jsx',
            cwd: '/',
            parserOpts: {
                plugins: ['jsx']
            },
            babelrc: false,
            plugins: [[_1.default, { emptyPlaceholderPath: 'empty' }]]
        });
        expect(rs.code).toMatchSnapshot();
    });
});
//# sourceMappingURL=index.test.js.map