Skip to content

Commit 724952a

Browse files
committed
feat: add support for mise.toml file
1 parent 748956a commit 724952a

File tree

4 files changed

+83628
-63349
lines changed

4 files changed

+83628
-63349
lines changed

__tests__/main.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ describe('main tests', () => {
114114
${'{"devEngines": {"runtime": [{"name": "bun"}, {"name": "node", "version": "22.0.0"}]}}'} | ${'22.0.0'}
115115
${'[tools]\ngo="latest"\nnode = "24.10"'} | ${'24.10'}
116116
${'[tools]\nnode = "22.12"'} | ${'22.12'}
117+
${'[tools]\ngo="latest"\nnode = "24.10"'} | ${'24.10'}
118+
${'[tools]\nnode = { version = "22.20" }'} | ${'22.20'}
119+
${'[tools]\nnode = { postinstall = "corepack enable" }'} | ${null}
117120
`.it('parses "$contents"', ({contents, expected}) => {
118121
const existsSpy = jest.spyOn(fs, 'existsSync');
119122
existsSpy.mockImplementation(() => true);

0 commit comments

Comments
 (0)