123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`transform should not transform if no transformations defined:
- module.exports = {
- devtool: 'eval',
- entry: [
- './src/index'
- ],
- output: {
- path: path.join(__dirname, 'dist'),
- filename: 'index.js'
- },
- module: {
- loaders: [{
- test: /.js$/,
- loaders: ['babel'],
- include: path.join(__dirname, 'src')
- }]
- },
- resolve: {
- root: path.resolve('/src'),
- modules: ['node_modules']
- },
- plugins: [
- new webpack.optimize.UglifyJsPlugin(),
- new webpack.optimize.OccurrenceOrderPlugin()
- ],
- debug: true
- };
- 1`] = `
- "
- module.exports = {
- devtool: 'eval',
- entry: [
- './src/index'
- ],
- output: {
- path: path.join(__dirname, 'dist'),
- filename: 'index.js'
- },
- module: {
- loaders: [{
- test: /.js$/,
- loaders: ['babel'],
- include: path.join(__dirname, 'src')
- }]
- },
- resolve: {
- root: path.resolve('/src'),
- modules: ['node_modules']
- },
- plugins: [
- new webpack.optimize.UglifyJsPlugin(),
- new webpack.optimize.OccurrenceOrderPlugin()
- ],
- debug: true
- };
- "
- `;
- exports[`transform should respect recast options 1`] = `
- "
- module.exports = {
- devtool: 'eval',
- entry: [
- './src/index'
- ],
- output: {
- path: path.join(__dirname, 'dist'),
- filename: 'index.js'
- },
- module: {
- rules: [{
- test: /.js$/,
- use: [{
- loader: \\"babel-loader\\",
- }],
- include: path.join(__dirname, 'src')
- }]
- },
- resolve: {
- modules: ['node_modules', path.resolve('/src')],
- },
- plugins: [new webpack.LoaderOptionsPlugin({
- debug: true,
- })],
- optimization: {
- minimize: true,
- }
- };
- "
- `;
- exports[`transform should transform only using specified transformations 1`] = `
- "
- module.exports = {
- devtool: 'eval',
- entry: [
- './src/index'
- ],
- output: {
- path: path.join(__dirname, 'dist'),
- filename: 'index.js'
- },
- module: {
- rules: [{
- test: /.js$/,
- use: [{
- loader: 'babel-loader'
- }],
- include: path.join(__dirname, 'src')
- }]
- },
- resolve: {
- root: path.resolve('/src'),
- modules: ['node_modules']
- },
- plugins: [
- new webpack.optimize.UglifyJsPlugin(),
- new webpack.optimize.OccurrenceOrderPlugin()
- ],
- debug: true
- };
- "
- `;
- exports[`transform should transform using all transformations 1`] = `
- "
- module.exports = {
- devtool: 'eval',
- entry: [
- './src/index'
- ],
- output: {
- path: path.join(__dirname, 'dist'),
- filename: 'index.js'
- },
- module: {
- rules: [{
- test: /.js$/,
- use: [{
- loader: 'babel-loader'
- }],
- include: path.join(__dirname, 'src')
- }]
- },
- resolve: {
- modules: ['node_modules', path.resolve('/src')]
- },
- plugins: [new webpack.LoaderOptionsPlugin({
- debug: true
- })],
- optimization: {
- minimize: true
- }
- };
- "
- `;
|