mirror of
https://github.com/nasa/openmct.git
synced 2024-12-27 00:31:06 +00:00
017380bb6a
* chore: upgrade eventemitter to v5.0.2 * fix: pass context to eventHelpers * fix: no need to destroy router as it is destroyed during openmct teardown * fix: register `CreateAction` and retrieve it from the registry * test: fix tests * refactor: import action key consts * fix: update usage. don't use getters Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com> --------- Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com>
32 lines
650 B
JavaScript
32 lines
650 B
JavaScript
/*
|
|
This file extends the webpack.dev.mjs config to add babel istanbul coverage.
|
|
OpenMCT Continuous Integration servers use this configuration to add code coverage
|
|
information to pull requests.
|
|
*/
|
|
|
|
import config from './webpack.dev.mjs';
|
|
|
|
config.devtool = 'inline-source-map';
|
|
config.devServer.hot = false;
|
|
|
|
config.module.rules.push({
|
|
test: /\.js$/,
|
|
exclude: /(Spec\.js$)|(node_modules)/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
retainLines: true,
|
|
plugins: [
|
|
[
|
|
'babel-plugin-istanbul',
|
|
{
|
|
extension: ['.js', '.vue']
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
});
|
|
|
|
export default config;
|