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:
parent
748956ad62
commit
724952ae6b
4 changed files with 20287 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue