How to use the babel-plugin-tester.default function in babel-plugin-tester

To help you get started, we’ve selected a few babel-plugin-tester examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ryansolid / babel-plugin-jsx-dom-expressions / test / dom.spec.js View on Github external
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
});
github ryansolid / babel-plugin-jsx-dom-expressions / test / ssr.spec.js View on Github external
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
});
github ryansolid / babel-plugin-jsx-dom-expressions / test / hydrate.spec.js View on Github external
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
});

babel-plugin-tester

Utilities for testing babel plugins

MIT
Latest version published 2 years ago

Package Health Score

62 / 100
Full package analysis

Popular babel-plugin-tester functions