| Server IP : 216.238.66.20 / Your IP : 216.73.216.248 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/energia-cce.gamliel.mx/htdocs/energia-cce/node_modules/react-dates/ |
Upload File : |
/* eslint no-param-reassign:0, import/no-extraneous-dependencies:0 */
const path = require('path');
const webpack = require('webpack');
module.exports = (config) => {
config.set({
basePath: '',
frameworks: ['mocha', 'sinon', 'chai'],
files: ['test/browser-main.js'],
webpack: {
mode: 'development',
externals: {
sinon: true,
},
plugins: [
// https://github.com/cheeriojs/cheerio/issues/836
new webpack.NormalModuleReplacementPlugin(/^\.\/package$/, (result) => {
if (/cheerio/.test(result.context)) {
result.request = './package.json';
}
}),
],
module: {
rules: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
include: [
path.join(__dirname, 'src'),
path.join(__dirname, 'test'),
require.resolve('airbnb-js-shims'),
],
options: {
presets: [
// setting modules to false so it does not transform twice
['airbnb', { modules: false }],
// transform to cjs so sinon can stub properly
['@babel/preset-env', { modules: 'cjs' }],
],
},
},
// Inject the Airbnb shims into the bundle
{ test: /test\/_helpers/, loader: 'imports-loader?shims=airbnb-js-shims' },
],
},
resolve: {
extensions: ['.js', '.jsx'],
},
},
webpackMiddleware: {
progress: false,
stats: false,
debug: false,
quiet: true,
},
preprocessors: {
'test/**/*': ['webpack'],
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['Firefox'],
singleRun: true,
concurrency: Infinity,
});
};