Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const path = require('path')
const pluginTester = require('babel-plugin-tester').default;
const plugin = require('../index');
pluginTester({
plugin,
pluginOptions: {
moduleName: 'r-dom',
builtIns: ['For'],
generate: "dom",
delegateEvents: true,
wrapConditionals: true,
contextToCustomElements: true
},
title: 'Convert JSX',
fixtures: path.join(__dirname, '__dom_fixtures__'),
snapshot: true
});
const path = require('path')
const pluginTester = require('babel-plugin-tester').default;
const plugin = require('../index');
pluginTester({
plugin,
pluginOptions: {
moduleName: 'r-dom',
builtIns: ['For'],
generate: "ssr",
delegateEvents: true,
contextToCustomElements: true
},
title: 'Convert JSX',
fixtures: path.join(__dirname, '__ssr_fixtures__'),
snapshot: true
});
const path = require('path')
const pluginTester = require('babel-plugin-tester').default;
const plugin = require('../index');
pluginTester({
plugin,
pluginOptions: {
moduleName: 'r-dom',
builtIns: ['For'],
generate: "hydrate",
delegateEvents: true,
contextToCustomElements: true
},
title: 'Convert JSX',
fixtures: path.join(__dirname, '__hydrate_fixtures__'),
snapshot: true
});