mirror of
https://github.com/gradle/actions.git
synced 2025-02-03 15:26:42 -05:00
chore: Clean-up missing imports for tests (#505)
Noticed had missing imports in tests, this adds them and orders imports consistently. Not sure why eslint missed this.
This commit is contained in:
parent
8646c701a9
commit
8c3e41f260
11 changed files with 24 additions and 9 deletions
|
@ -1,8 +1,9 @@
|
|||
import * as exec from '@actions/exec'
|
||||
import * as core from '@actions/core'
|
||||
import * as glob from '@actions/glob'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import {expect, test, jest} from '@jest/globals'
|
||||
|
||||
import {CacheCleaner} from '../../src/caching/cache-cleaner'
|
||||
|
||||
jest.setTimeout(120000)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
import * as path from 'path'
|
||||
import * as fs from 'fs'
|
||||
import {describe, expect, it} from '@jest/globals'
|
||||
|
||||
import {GradleUserHomeCache} from "../../src/caching/gradle-user-home-cache"
|
||||
import {CacheConfig} from "../../src/configuration"
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import exp from 'constants'
|
||||
import {describe, expect, it} from '@jest/globals'
|
||||
|
||||
import {CacheEntryListener, CacheListener} from '../../src/caching/cache-reporting'
|
||||
|
||||
describe('caching report', () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import {describe, expect, it} from '@jest/globals'
|
||||
|
||||
import * as cacheUtils from '../../src/caching/cache-utils'
|
||||
|
||||
describe('cacheUtils-utils', () => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import {describe, expect, it} from '@jest/globals'
|
||||
|
||||
import * as inputParams from '../../src/configuration'
|
||||
|
||||
describe('input params', () => {
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import { DependencyGraphConfig } from "../../src/configuration"
|
||||
import {describe, expect, it} from '@jest/globals'
|
||||
|
||||
import {DependencyGraphConfig} from "../../src/configuration"
|
||||
|
||||
describe('dependency-graph', () => {
|
||||
describe('constructs job correlator', () => {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { describe } from 'node:test'
|
||||
import { versionIsAtLeast, parseGradleVersionFromOutput } from '../../src/execution/gradle'
|
||||
import {describe, expect, it} from '@jest/globals'
|
||||
|
||||
import {versionIsAtLeast, parseGradleVersionFromOutput} from '../../src/execution/gradle'
|
||||
|
||||
describe('gradle', () => {
|
||||
describe('can compare version with', () => {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { BuildResult } from '../../src/build-results'
|
||||
import { renderSummaryTable } from '../../src/job-summary'
|
||||
import dedent from 'dedent'
|
||||
import {describe, expect, it} from '@jest/globals'
|
||||
|
||||
import {BuildResult} from '../../src/build-results'
|
||||
import {renderSummaryTable} from '../../src/job-summary'
|
||||
|
||||
const successfulHelpBuild: BuildResult = {
|
||||
rootProjectName: 'root',
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import {afterAll, describe, expect, it, jest} from '@jest/globals'
|
||||
|
||||
import {getPredefinedToolchains, mergeToolchainContent} from "../../src/caching/gradle-user-home-utils";
|
||||
|
||||
describe('predefined-toolchains', () => {
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
import {DevelocityAccessCredentials, getToken} from "../../src/develocity/short-lived-token";
|
||||
import nock from "nock";
|
||||
import {describe, expect, it} from '@jest/globals'
|
||||
|
||||
import {DevelocityAccessCredentials, getToken} from "../../src/develocity/short-lived-token";
|
||||
|
||||
describe('short lived tokens', () => {
|
||||
it('parse valid access key should return an object', async () => {
|
||||
|
|
|
@ -4,7 +4,6 @@ import * as validate from '../../../src/wrapper-validation/validate'
|
|||
import {expect, test, jest} from '@jest/globals'
|
||||
import { WrapperChecksums, KNOWN_CHECKSUMS } from '../../../src/wrapper-validation/checksums'
|
||||
import { ChecksumCache } from '../../../src/wrapper-validation/cache'
|
||||
import exp from 'constants'
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
|
|
Loading…
Reference in a new issue