@mongodb-js/compass-query-bar
Version:
Renders a component for executing MongoDB queries through a GUI.
29 lines (27 loc) • 757 B
JavaScript
const webpackConfig = require('./config/webpack.karma.config');
module.exports = function(config) {
config.set({
basePath: '',
singleRun: true,
files: [
'test/**/*.spec.js'
],
reporters: ['mocha'],
preprocessors: {
'test/**/*.spec.js': ['webpack', 'sourcemap']
},
browsers: ['Electron'],
frameworks: ['mocha', 'chai', 'sinon', 'chai-sinon'],
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true,
stats: 'errors-only'
},
// DEV: `useIframe: false` is for launching a new window instead of using an iframe
// In Electron, iframes don't get `nodeIntegration` priveleges yet windows do.
client: {
useIframe: false
},
logLevel: config.LOG_ERROR
});
};