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:
Kevin Brightwell 2025-01-14 16:03:32 -05:00 committed by Daz DeBoer
parent 8646c701a9
commit 8c3e41f260
11 changed files with 24 additions and 9 deletions

View file

@ -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)

View file

@ -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"

View file

@ -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', () => {

View file

@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals'
import * as cacheUtils from '../../src/caching/cache-utils'
describe('cacheUtils-utils', () => {

View file

@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals'
import * as inputParams from '../../src/configuration'
describe('input params', () => {

View file

@ -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', () => {

View file

@ -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', () => {

View file

@ -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',

View file

@ -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', () => {

View file

@ -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 () => {

View file

@ -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)