Skip to content

Commit 1aa620c

Browse files
committed
chore: convert the new merge previous releases tests to vitest
1 parent 55b23ec commit 1aa620c

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎.github/scripts/tests/merge-previous-releases.test.mts‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ test('moves the Unreleased link to the restored release', () => {
180180

181181
fixture.run();
182182

183-
assert.equal(
184-
fixture.readChangelog(),
183+
expect(fixture.readChangelog()).toBe(
185184
`# Changelog\n\n## [Unreleased]\n\n## [13.54.0]\n\n- Released entry (#2)\n\n## [13.53.0]\n\n- Existing entry (#1)\n\n[Unreleased]: ${compare}v13.54.0...HEAD\n[13.54.0]: ${compare}v13.53.0...v13.54.0\n[13.53.0]: ${compare}v13.52.0...v13.53.0\n`,
186185
);
187186
});
@@ -196,9 +195,7 @@ test('keeps an Unreleased link that already starts from a newer release', () =>
196195

197196
fixture.run();
198197

199-
assert.ok(
200-
fixture
201-
.readChangelog()
202-
.includes(`[Unreleased]: ${compare}v13.55.0...HEAD\n`),
198+
expect(fixture.readChangelog()).toContain(
199+
`[Unreleased]: ${compare}v13.55.0...HEAD\n`,
203200
);
204201
});

‎oxlint-suppressions.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@
348348
"count": 3
349349
},
350350
"vitest/consistent-test-it": {
351-
"count": 4
351+
"count": 6
352352
},
353353
"vitest/require-top-level-describe": {
354-
"count": 5
354+
"count": 7
355355
}
356356
},
357357
".github/scripts/tests/release-section.test.mts": {

0 commit comments

Comments
 (0)