Skip to content

Commit

Permalink
chore: Fix missing imports (#25)
Browse files Browse the repository at this point in the history
Clone of gradle#505
  • Loading branch information
Nava2 authored Jan 10, 2025
1 parent 7ba6b1c commit 953c60c
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 9 deletions.
3 changes: 2 additions & 1 deletion sources/test/jest/cache-cleanup.test.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 2 additions & 0 deletions sources/test/jest/cache-debug.test.ts
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
3 changes: 2 additions & 1 deletion sources/test/jest/cache-reporting.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
2 changes: 2 additions & 0 deletions sources/test/jest/cache-utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals'

import * as cacheUtils from '../../src/caching/cache-utils'

describe('cacheUtils-utils', () => {
Expand Down
2 changes: 2 additions & 0 deletions sources/test/jest/configuration.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals'

import * as inputParams from '../../src/configuration'

describe('input params', () => {
Expand Down
4 changes: 3 additions & 1 deletion sources/test/jest/dependency-graph.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
5 changes: 3 additions & 2 deletions sources/test/jest/gradle-version.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
5 changes: 3 additions & 2 deletions sources/test/jest/job-summary.test.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
2 changes: 2 additions & 0 deletions sources/test/jest/predefined-toolchains.test.ts
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
4 changes: 3 additions & 1 deletion sources/test/jest/short-lived-token.test.ts
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down
1 change: 0 additions & 1 deletion sources/test/jest/wrapper-validation/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 953c60c

Please sign in to comment.