import { test, expect, describe } from "vitest"; import { solutionPart1, sample, puzzleInput, } from "./part1.js"; import { solutionPart2 } from "./part2.js"; function expectSolution(result) { console.info(result); return expect(result); } describe("part 1", () => { test( 'sample', () => { console.log(JSON.stringify(solutionPart1(sample))); expectSolution(solutionPart1(sample)).toEqual(157) }); test("solution", () => { expectSolution(solutionPart1(puzzleInput)).toEqual('TODO'); }); }); describe("part 2", () => { test.todo("solution", () => { expectSolution(solutionPart2(puzzleInput)).toEqual('TODO'); }); });