import fs from 'node:fs'; import os from 'node:os'; import path from 'node:path'; import { afterEach, describe, expect, it, rs } from '@rstest/core'; import { notesEnd, notesStart, prepareReleaseNotes, readHighlights, replaceGeneratedNotes, writeReleaseArchives, } from '../release-notes.mjs'; const roots = []; const rawNotes = [ '', "## What's Changed", '* fix(core): show {limit} by @example in https://github.com/web-infra-dev/midscene/pull/2', '* feat(core): use `Array` by @example in https://github.com/web-infra-dev/midscene/pull/1', '## New Contributors', '* @example made their first contribution in https://github.com/web-infra-dev/midscene/pull/1', '**Full Changelog**: https://github.com/web-infra-dev/midscene/compare/v1.9.0...v1.10.0', ].join('\n'); const history = '\n\n## v0.11 - Historical title\n\n