-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pavithra K
committed
Mar 2, 2017
1 parent
4020043
commit 9828582
Showing
5 changed files
with
4,764 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,99 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
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: \\"babel\\", | ||
include: path.join(__dirname, 'src') | ||
}] | ||
}, | ||
resolve: { | ||
modules: ['node_modules', path.resolve('/src')], | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
sourceMap: true, | ||
}), | ||
new webpack.optimize.LoaderOptionsPlugin({ | ||
\\"debug\\": true, | ||
\\"minimize\\": true, | ||
}) | ||
], | ||
debug: true | ||
"module.exports = { | ||
devtool: 'eval', | ||
entry: ['./src/index'], | ||
output: { | ||
path: path.join(__dirname, 'dist'), | ||
filename: 'index.js' | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /.js$/, | ||
use: 'babel', | ||
include: path.join(__dirname, 'src') | ||
} | ||
] | ||
}, | ||
resolve: { | ||
modules: ['node_modules', path.resolve('/src')] | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
sourceMap: true | ||
}), | ||
new webpack.optimize.LoaderOptionsPlugin({ | ||
debug: true, | ||
minimize: true | ||
}) | ||
], | ||
debug: 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: ['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 | ||
"module.exports = { | ||
devtool: 'eval', | ||
entry: ['./src/index'], | ||
output: { | ||
path: path.join(__dirname, 'dist'), | ||
filename: 'index.js' | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /.js$/, | ||
use: ['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 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: 'babel', | ||
include: path.join(__dirname, 'src') | ||
}] | ||
}, | ||
resolve: { | ||
modules: ['node_modules', path.resolve('/src')] | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
sourceMap: true | ||
}), | ||
new webpack.optimize.LoaderOptionsPlugin({ | ||
'debug': true, | ||
'minimize': true | ||
}) | ||
], | ||
debug: true | ||
"module.exports = { | ||
devtool: 'eval', | ||
entry: ['./src/index'], | ||
output: { | ||
path: path.join(__dirname, 'dist'), | ||
filename: 'index.js' | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /.js$/, | ||
use: 'babel', | ||
include: path.join(__dirname, 'src') | ||
} | ||
] | ||
}, | ||
resolve: { | ||
modules: ['node_modules', path.resolve('/src')] | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
sourceMap: true | ||
}), | ||
new webpack.optimize.LoaderOptionsPlugin({ | ||
debug: true, | ||
minimize: true | ||
}) | ||
], | ||
debug: true | ||
}; | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.