Skip to content

Commit

Permalink
test(client): use get instead of head requests
Browse files Browse the repository at this point in the history
Apparently, webpack-dev-server does not handle HEAD requests,
see "Note for webpack-dev-server users" at:
https://github.com/bahmutov/start-server-and-test/blob/master/README.md
For some reason this hasn't been a problem until now when a dependency
update bumped webpack-dev-middleware from 7.2.1 to 7.3.0,
the regression described in this issue might be real:
webpack/webpack-dev-middleware#1920
  • Loading branch information
shanedg committed Aug 19, 2024
1 parent 23182e4 commit e7e8ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test": "jest --reporters=@trshcmpctr/jest-stdout-reporter --silent",
"test:debug": "NODE_OPTIONS=--inspect jest --runInBand --no-cache",
"test:watch": "jest --watch",
"test:cypress": "start-server-and-test serve http://localhost:8080 cy:run",
"test:cypress": "start-server-and-test serve http-get://localhost:8080 cy:run",
"type-check": "tsc",
"watch": "webpack --config webpack.config.cjs --watch"
},
Expand Down

0 comments on commit e7e8ae0

Please sign in to comment.