chore: Clean-up missing imports for tests

Noticed we had missing imports here, fixes them.
This commit is contained in:
Kevin Brightwell 2025-01-06 09:38:59 -05:00
parent 7ba6b1c820
commit f1ac6cbe32
10 changed files with 10 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import * as glob from '@actions/glob'
import fs from 'fs'
import path from 'path'
import {CacheCleaner} from '../../src/caching/cache-cleaner'
import {expect, test, jest} from '@jest/globals'
jest.setTimeout(120000)

View File

@ -2,6 +2,7 @@ import * as path from 'path'
import * as fs from 'fs'
import {GradleUserHomeCache} from "../../src/caching/gradle-user-home-cache"
import {CacheConfig} from "../../src/configuration"
import {describe, expect} from '@jest/globals'
const testTmp = 'test/jest/tmp'
fs.rmSync(testTmp, {recursive: true, force: true})

View File

@ -1,5 +1,6 @@
import exp from 'constants'
import {CacheEntryListener, CacheListener} from '../../src/caching/cache-reporting'
import {describe, expect} from '@jest/globals'
describe('caching report', () => {
describe('reports not fully restored', () => {

View File

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

View File

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

View File

@ -1,6 +1,7 @@
import { describe } from 'node:test'
import { versionIsAtLeast, parseGradleVersionFromOutput } from '../../src/execution/gradle'
import { describe, expect, it} from '@jest/globals'
describe('gradle', () => {
describe('can compare version with', () => {
it('same version', async () => {

View File

@ -1,6 +1,7 @@
import { BuildResult } from '../../src/build-results'
import { renderSummaryTable } from '../../src/job-summary'
import dedent from 'dedent'
import { describe, expect, it} from '@jest/globals'
const successfulHelpBuild: BuildResult = {

View File

@ -1,4 +1,5 @@
import {getPredefinedToolchains, mergeToolchainContent} from "../../src/caching/gradle-user-home-utils";
import { afterAll, describe, expect, it, jest } from '@jest/globals'
describe('predefined-toolchains', () => {
const OLD_ENV = process.env

View File

@ -1,5 +1,6 @@
import {DevelocityAccessCredentials, getToken} from "../../src/develocity/short-lived-token";
import nock from "nock";
import { describe, expect, it } from '@jest/globals'
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)