fix ordering

This commit is contained in:
Kevin Brightwell 2025-01-06 09:44:53 -05:00
parent f1ac6cbe32
commit db9a5b527f
10 changed files with 25 additions and 18 deletions

View File

@ -1,10 +1,10 @@
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 {CacheCleaner} from '../../src/caching/cache-cleaner'
import {expect, test, jest} from '@jest/globals'
import { expect, test, jest } from '@jest/globals'
import { CacheCleaner } from '../../src/caching/cache-cleaner'
jest.setTimeout(120000)

View File

@ -1,8 +1,9 @@
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'
import { describe, expect, it } from '@jest/globals'
import { GradleUserHomeCache } from "../../src/caching/gradle-user-home-cache"
import { CacheConfig } from "../../src/configuration"
const testTmp = 'test/jest/tmp'
fs.rmSync(testTmp, {recursive: true, force: true})

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
import { describe, expect, it } from '@jest/globals'
import { DependencyGraphConfig } from "../../src/configuration"
describe('dependency-graph', () => {

View File

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

View File

@ -1,8 +1,8 @@
import dedent from 'dedent'
import { describe, expect, it } from '@jest/globals'
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 = {
rootProjectName: 'root',

View File

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

View File

@ -1,7 +1,8 @@
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 () => {
let develocityAccessCredentials = DevelocityAccessCredentials.parse('some-host.local=key1;host2=key2');