Skip to content

Tests: replace express with basic Node server (3.x)#5531

Merged
timmywil merged 3 commits into
jquery:3.x-stablefrom
timmywil:drop-express-3.x
Aug 24, 2024
Merged

Tests: replace express with basic Node server (3.x)#5531
timmywil merged 3 commits into
jquery:3.x-stablefrom
timmywil:drop-express-3.x

Conversation

@timmywil
Copy link
Copy Markdown
Member

@timmywil timmywil commented Aug 11, 2024

Summary

3.x version of #5527 and #5532

  • replace express with basic Node server
  • Replace dead links in qunit fixture and use https for all links.
  • Upgrade dependencies (not sinon or uglify)

Sample browserstack run: https://github.com/timmywil/jquery/actions/runs/10353380768

Checklist

@timmywil timmywil added the Tests label Aug 11, 2024
@timmywil timmywil added this to the 3.7.2 milestone Aug 11, 2024
@timmywil timmywil requested a review from mgol August 11, 2024 15:23
@timmywil timmywil self-assigned this Aug 11, 2024
Comment thread eslint.config.js
"test/bundler_smoke_tests/**/*",
"test/promises_aplus_adapters/**",
"test/middleware-mockserver.js"
"test/middleware-mockserver.cjs"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we had said it'd be nice if this filename matched the main branch, so I've made that change in this PR.

Comment thread package.json
"@prantlf/jsonlint": "14.0.3",
"@types/selenium-webdriver": "4.1.24",
"body-parser": "1.20.2",
"archiver": "7.0.1",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was missing from the release PR.

@timmywil timmywil changed the title Tests: replace express with basic Node server Tests: replace express with basic Node server (3.x) Aug 12, 2024
Copy link
Copy Markdown
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a few questions about alignment, but not strictly related to this PR landing.

Comment thread test/data/mock.php

/**
* Keep in sync with /test/middleware-mockserver.js
* Keep in sync with /test/middleware-mockserver.cjs
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, mock.php on main has some differences from the 3.x-stable version, mostly due to response formatting (3.x has more spaces). Spacey versions better suite our code style, but we should align regardless. middleware-mockserver.cjs has way fewer changes - mostly extra stuff for main which makes sense.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've copied what changes I thought made sense from main, but not the spacing. We can then switch the spacing on main.

Comment thread test/runner/createTestServer.js
@timmywil timmywil requested a review from mgol August 23, 2024 02:00
Comment thread test/data/mock.php Outdated
@timmywil timmywil merged commit 8037b9f into jquery:3.x-stable Aug 24, 2024
@timmywil timmywil deleted the drop-express-3.x branch August 24, 2024 14:05
timmywil added a commit that referenced this pull request Aug 24, 2024
timmywil added a commit that referenced this pull request Aug 24, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

2 participants