10
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2026-04-08 16:54:18 +00:00

feat: add support for mise.toml file

This commit is contained in:
Gustavo Perdomo 2025-10-22 00:25:58 -03:00
parent 748956ad62
commit 724952ae6b
No known key found for this signature in database
4 changed files with 20287 additions and 8 deletions

View file

@ -114,6 +114,9 @@ describe('main tests', () => {
${'{"devEngines": {"runtime": [{"name": "bun"}, {"name": "node", "version": "22.0.0"}]}}'} | ${'22.0.0'}
${'[tools]\ngo="latest"\nnode = "24.10"'} | ${'24.10'}
${'[tools]\nnode = "22.12"'} | ${'22.12'}
${'[tools]\ngo="latest"\nnode = "24.10"'} | ${'24.10'}
${'[tools]\nnode = { version = "22.20" }'} | ${'22.20'}
${'[tools]\nnode = { postinstall = "corepack enable" }'} | ${null}
`.it('parses "$contents"', ({contents, expected}) => {
const existsSpy = jest.spyOn(fs, 'existsSync');
existsSpy.mockImplementation(() => true);