- clear categories in tests as we run in the same process multiple times
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { clear } from '../src/transform'
|
||||
import {mergeConfiguration, parseConfiguration, resolveConfiguration} from '../src/utils'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
it('Configurations are merged correctly', async () => {
|
||||
const configurationJson = parseConfiguration(`{
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import {mergeConfiguration, resolveConfiguration} from '../../src/utils'
|
||||
import {ReleaseNotesBuilder} from '../../src/releaseNotesBuilder'
|
||||
import {GiteaRepository} from '../../src/repositories/GiteaRepository'
|
||||
import { clear } from '../../src/transform'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
/**
|
||||
* Before starting testing, you should manually clone the repository
|
||||
|
||||
@@ -2,8 +2,10 @@ import {checkExportedData, mergeConfiguration, resolveConfiguration} from '../..
|
||||
import {buildChangelog} from '../../src/transform'
|
||||
import {pullData} from '../../src/pr-collector/prCollector'
|
||||
import {GiteaRepository} from '../../src/repositories/GiteaRepository'
|
||||
import { clear } from '../../src/transform'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
// load octokit instance
|
||||
const enablePullData = false
|
||||
|
||||
@@ -2,8 +2,10 @@ import * as path from 'path'
|
||||
import * as process from 'process'
|
||||
import * as cp from 'child_process'
|
||||
import * as fs from 'fs'
|
||||
import { clear } from '../src/transform'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
test('missing values should result in failure', () => {
|
||||
expect.assertions(1)
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import { transformStringToValue, validateRegex } from '../src/pr-collector/regexUtils'
|
||||
import { Regex } from '../src/pr-collector/types'
|
||||
import { clear } from '../src/transform'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
it('Replace into target', async () => {
|
||||
const regex: Regex = {
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import {mergeConfiguration, resolveConfiguration} from '../src/utils'
|
||||
import {ReleaseNotesBuilder} from '../src/releaseNotesBuilder'
|
||||
import {GithubRepository} from '../src/repositories/GithubRepository'
|
||||
import { clear } from '../src/transform'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
const token = process.env.GITHUB_TOKEN || ''
|
||||
const githubRepository = new GithubRepository(token, undefined, '.')
|
||||
|
||||
@@ -2,8 +2,10 @@ import {checkExportedData, mergeConfiguration, resolveConfiguration} from '../sr
|
||||
import {buildChangelog} from '../src/transform'
|
||||
import {pullData} from '../src/pr-collector/prCollector'
|
||||
import {GithubRepository} from '../src/repositories/GithubRepository'
|
||||
import { clear } from '../src/transform'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
// load octokit instance
|
||||
const enablePullData = false // if false -> use cache for data
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { TagResolver } from '../src/configuration'
|
||||
import { validateRegex } from '../src/pr-collector/regexUtils'
|
||||
import {filterTags, prepareAndSortTags, TagInfo, transformTags} from '../src/pr-collector/tags'
|
||||
import { clear } from '../src/transform'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
it('Should order tags correctly using semver', async () => {
|
||||
const tags: TagInfo[] = [
|
||||
|
||||
@@ -4,8 +4,10 @@ import {Configuration, DefaultConfiguration} from '../src/configuration'
|
||||
import {PullRequestInfo} from '../src/pr-collector/pullRequests'
|
||||
import {DefaultDiffInfo} from '../src/pr-collector/commits'
|
||||
import {GithubRepository} from '../src/repositories/GithubRepository'
|
||||
import { clear } from '../src/transform'
|
||||
|
||||
jest.setTimeout(180000)
|
||||
clear()
|
||||
|
||||
const configuration = Object.assign({}, DefaultConfiguration)
|
||||
configuration.categories = [
|
||||
|
||||
Reference in New Issue
Block a user