1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-11 11:34:05 +00:00

Merge pull request from overleaf/jpa-karma-disable-watching

[misc] disable file-watching for karma and webpack in CI

GitOrigin-RevId: bbd5a0e38ccd18475d2e04e78fc86d5dbd5a3d1a
This commit is contained in:
Jakob Ackermann 2021-02-17 10:05:25 +00:00 committed by Copybot
parent 43aa8841e3
commit ba0779b60c
2 changed files with 12 additions and 1 deletions

View file

@ -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'
},

View file

@ -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",