Skip to content

Commit

Permalink
future-proof ping route default test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanner Reits committed Feb 27, 2024
1 parent 663b832 commit d9f6391
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compiler/config/test/validate-dev-server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ describe('validateDevServer', () => {

describe('pingRoute', () => {
it('should default to /ping', () => {
// Ensure the pingRoute is not set in the inputConfig so we know we're testing the
// default value added during validation
delete inputConfig.devServer.pingRoute;
const { config } = validateConfig(inputConfig, mockLoadConfigInit());
expect(config.devServer.pingRoute).toBe('/ping');
});
Expand Down

0 comments on commit d9f6391

Please sign in to comment.