Skip to content

Commit

Permalink
testing: don't run EnvironmentBuilder on every test
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 26, 2024
1 parent 799524b commit 0857fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/testing/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ export function createTestHelpers(options: any = {}) {
helper.settings = { ...DEFAULT_TEST_SETTINGS, ...options.settings };
helper.environmentOptions = { ...DEFAULT_TEST_ENV_OPTIONS, ...environmentOptions, sharedOptions };
helper.generatorOptions = { ...DEFAULT_TEST_OPTIONS, ...options.generatorOptions };
helper.createEnv = (...args) => EnvironmentBuilder.createEnv(...args) as any;
helper.createEnv = async (...args) => EnvironmentBuilder.create(...args).getEnvironment();
// @ts-expect-error testing types should be improved
helper.getRunContextType = () => JHipsterRunContext;
return helper;
Expand Down

0 comments on commit 0857fc5

Please sign in to comment.