mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #3657 from overleaf/jpa-karma-disable-watching
[misc] disable file-watching for karma and webpack in CI GitOrigin-RevId: bbd5a0e38ccd18475d2e04e78fc86d5dbd5a3d1a
This commit is contained in:
@@ -26,6 +26,17 @@ module.exports = function(config) {
|
||||
webpack: webpackConfig,
|
||||
// Configure the webpack dev server used to serve test files
|
||||
webpackMiddleware: {
|
||||
// Disable file-watching -- it is of no use in CI, we use single runs.
|
||||
// https://webpack.js.org/configuration/watch/
|
||||
watch: false,
|
||||
// ^ does not work when placed in webpack.config.test.
|
||||
// webpack-dev-middleware overrides it :/
|
||||
// v seems to be supported, according to
|
||||
// https://www.npmjs.com/package/webpack-dev-middleware#watchoptions
|
||||
watchOptions: {
|
||||
ignored: [/node_modules/, /frontend/, /test/]
|
||||
},
|
||||
|
||||
// Disable noisy CLI output
|
||||
stats: 'errors-only'
|
||||
},
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --timeout 5000 --exit --grep=$MOCHA_GREP --require test/frontend/bootstrap.js test/frontend modules/*/test/frontend",
|
||||
"test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend",
|
||||
"test:karma": "karma start",
|
||||
"test:karma:single": "karma start --single-run",
|
||||
"test:karma:single": "karma start --no-auto-watch --single-run",
|
||||
"start": "node $NODE_APP_OPTIONS app.js",
|
||||
"nodemon": "nodemon --config nodemon.json",
|
||||
"webpack": "webpack-dev-server --config webpack.config.dev.js",
|
||||
|
||||
Reference in New Issue
Block a user