Skip to content

test: acceptance test for old Node.js versions - #564

Merged
justinmk merged 1 commit into
neovim:masterfrom
justinmk:master
Oct 5, 2026
Merged

justinmk merged 1 commit into
neovim:masterfrom
justinmk:master

Conversation

@justinmk

@justinmk justinmk commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Problem:
mocha 12 requires Node.js 20.19+, so the Node.js 16/18 jobs fail:
SyntaxError: Unexpected token 'with'. #552

Solution:

  • Run the mocha suite only on Node.js that supports it.
  • On 16/18 run scripts/test-old.js: attaches to an embedded Nvim and does
    an RPC round-trip, so the built package is still exercised there.
  • Bump to mocha v12.

Problem:
mocha 12 requires Node.js 20.19+, so the Node.js 16/18 jobs fail:
`SyntaxError: Unexpected token 'with'`.

Solution:
- Run the mocha suite only on Node.js that supports it.
- On 16/18 run scripts/test-old.js: attaches to an embedded Nvim and does
  an RPC round-trip, so the built package is still exercised there.
- Bump to mocha v12.
@justinmk
justinmk merged commit 276255e into neovim:master Oct 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant