@@ -2,9 +2,8 @@ import {mergeConfiguration, resolveConfiguration} from '../../src/utils.js'
22import { ReleaseNotesBuilder } from '../../src/releaseNotesBuilder.js'
33import { GiteaRepository } from '../../src/repositories/GiteaRepository.js'
44import { clear } from '../../src/transform.js'
5- import { jest } from '@jest/globals '
5+ import { expect , test } from 'vitest '
66
7- jest . setTimeout ( 180000 )
87clear ( )
98
109/**
@@ -20,7 +19,7 @@ const owner = 'jolheiser'
2019const repo = 'sip'
2120const configurationFile = 'configs/configuration_gitea.json'
2221
23- it ( '[Gitea] Verify reviewers who approved are fetched and also release information' , async ( ) => {
22+ test ( '[Gitea] Verify reviewers who approved are fetched and also release information' , async ( ) => {
2423 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_approvers.json' ) )
2524
2625 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -60,7 +59,7 @@ it('[Gitea] Verify reviewers who approved are fetched and also release informati
6059 )
6160} )
6261
63- it ( '[Gitea] Should match generated changelog (unspecified fromTag)' , async ( ) => {
62+ test ( '[Gitea] Should match generated changelog (unspecified fromTag)' , async ( ) => {
6463 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , configurationFile ) )
6564
6665 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -97,7 +96,7 @@ it('[Gitea] Should match generated changelog (unspecified fromTag)', async () =>
9796} )
9897
9998//
100- it ( '[Gitea] Should match generated changelog (unspecified tags)' , async ( ) => {
99+ test ( '[Gitea] Should match generated changelog (unspecified tags)' , async ( ) => {
101100 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , configurationFile ) )
102101
103102 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -133,7 +132,7 @@ it('[Gitea] Should match generated changelog (unspecified tags)', async () => {
133132` )
134133} )
135134
136- it ( '[Gitea] Should use empty placeholder' , async ( ) => {
135+ test ( '[Gitea] Should use empty placeholder' , async ( ) => {
137136 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , configurationFile ) )
138137
139138 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -184,7 +183,7 @@ it('[Gitea] Should use empty placeholder', async () => {
184183` )
185184} )
186185
187- it ( '[Gitea] Should fill empty placeholders' , async ( ) => {
186+ test ( '[Gitea] Should fill empty placeholders' , async ( ) => {
188187 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_empty_all_placeholders.json' ) )
189188
190189 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -292,7 +291,7 @@ https://gitea.com/jolheiser/sip/compare/v0.1.0...v0.4.0
292291 )
293292} )
294293
295- it ( '[Gitea] Should fill `template` placeholders' , async ( ) => {
294+ test ( '[Gitea] Should fill `template` placeholders' , async ( ) => {
296295 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_empty_all_placeholders.json' ) )
297296
298297 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -400,7 +399,7 @@ https://gitea.com/jolheiser/sip/compare/v0.1.0...v0.4.0
400399 )
401400} )
402401
403- it ( '[Gitea] Should fill `template` placeholders, ignore' , async ( ) => {
402+ test ( '[Gitea] Should fill `template` placeholders, ignore' , async ( ) => {
404403 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_empty_all_placeholders.json' ) )
405404 configuration . categories . pop ( ) // drop `uncategorized` category
406405
@@ -466,7 +465,7 @@ https://gitea.com/jolheiser/sip/compare/v0.3.0...v0.5.0
466465 )
467466} )
468467
469- it ( '[Gitea] Uncategorized category' , async ( ) => {
468+ test ( '[Gitea] Uncategorized category' , async ( ) => {
470469 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_uncategorized_category.json' ) )
471470
472471 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -540,7 +539,7 @@ Ignored:
540539 )
541540} )
542541
543- it ( '[Gitea] Verify commit based changelog' , async ( ) => {
542+ test ( '[Gitea] Verify commit based changelog' , async ( ) => {
544543 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_commits.json' ) )
545544
546545 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -617,7 +616,7 @@ Ignored:
617616 )
618617} )
619618
620- it ( '[Gitea] Verify commit based changelog' , async ( ) => {
619+ test ( '[Gitea] Verify commit based changelog' , async ( ) => {
621620 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , configurationFile ) )
622621
623622 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -655,7 +654,7 @@ it('[Gitea] Verify commit based changelog', async () => {
655654 )
656655} )
657656// no open prs
658- it ( '[Gitea] Verify default inclusion of open PRs' , async ( ) => {
657+ test ( '[Gitea] Verify default inclusion of open PRs' , async ( ) => {
659658 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_including_open.json' ) )
660659
661660 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
696695` )
697696} )
698697
699- it ( '[Gitea] Verify custom categorisation of open PRs' , async ( ) => {
698+ test ( '[Gitea] Verify custom categorisation of open PRs' , async ( ) => {
700699 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_excluding_open.json' ) )
701700
702701 const giteaRepository = new GiteaRepository ( token , undefined , workingDirectory )
@@ -727,7 +726,7 @@ it('[Gitea] Verify custom categorisation of open PRs', async () => {
727726 expect ( changeLog ) . toStrictEqual ( `` )
728727} )
729728
730- it ( '[Gitea] Fetch release information' , async ( ) => {
729+ test ( '[Gitea] Fetch release information' , async ( ) => {
731730 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_approvers.json' ) )
732731 configuration . template = '#{{FROM_TAG}}-#{{FROM_TAG_DATE}}\n#{{TO_TAG}}-#{{TO_TAG_DATE}}\n#{{DAYS_SINCE}}'
733732
@@ -761,7 +760,7 @@ master-2020-09-21T19:30:21.000Z
7617604` )
762761} )
763762
764- it ( '[Gitea] Fetch release information for non existing tag / release' , async ( ) => {
763+ test ( '[Gitea] Fetch release information for non existing tag / release' , async ( ) => {
765764 const configuration = mergeConfiguration ( undefined , resolveConfiguration ( '' , 'configs_test/configuration_approvers.json' ) )
766765 configuration . template = '#{{FROM_TAG}}-#{{FROM_TAG_DATE}}\n#{{TO_TAG}}-#{{TO_TAG_DATE}}\n#{{DAYS_SINCE}}'
767766
0 commit comments