Skip to content

Commit

Permalink
rename ProjectConfigPerfStats to SetupAfterEnvPerfStats
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkubej committed Nov 4, 2023
1 parent f268e65 commit e64b609
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ const jestAdapter = async (
runtime.requireModule(testPath);
}

const projectConfigPerfStats = {
const setupAfterEnvPerfStats = {
setupAfterEnvEnd,
setupAfterEnvStart,
};

const results = await runAndTransformResultsToJestFormat({
config,
globalConfig,
projectConfigPerfStats,
setupAfterEnvPerfStats,
testPath,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ export const initialize = async ({
export const runAndTransformResultsToJestFormat = async ({
config,
globalConfig,
projectConfigPerfStats,
setupAfterEnvPerfStats,
testPath,
}: {
config: Config.ProjectConfig;
globalConfig: Config.GlobalConfig;
testPath: string;
projectConfigPerfStats: Config.ProjectConfigPerfStats;
setupAfterEnvPerfStats: Config.SetupAfterEnvPerfStats;
}): Promise<TestResult> => {
const runResult: Circus.RunResult = await run();

Expand Down Expand Up @@ -231,7 +231,7 @@ export const runAndTransformResultsToJestFormat = async ({
numTodoTests,
perfStats: {
...emptyTestResult.perfStats,
...projectConfigPerfStats,
...setupAfterEnvPerfStats,
},
testExecError,
testFilePath: testPath,
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-types/src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export type ProjectConfig = {
workerIdleMemoryLimit?: number;
};

export type ProjectConfigPerfStats = {
export type SetupAfterEnvPerfStats = {
setupAfterEnvStart: number;
setupAfterEnvEnd: number;
};
Expand Down

0 comments on commit e64b609

Please sign in to comment.