Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/react-dates/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /* 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,
});
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0431 ]-- |