chore: Fix missing imports (#25)

Clone of https://github.com/gradle/actions/pull/505
This commit is contained in:
Kevin Brightwell 2025-01-10 08:32:28 -05:00 committed by GitHub
parent 7ba6b1c820
commit 953c60c6ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)