Skip to content

Commit

Permalink
(fix): seed snapshot custom configs are correct
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Apr 30, 2024
1 parent 0f896bc commit 09a70b5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/seed/src/commands/test/test-runner/TestRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@ export abstract class TestRunner {
);
const language = this.generator.workspaceConfig.language;
const outputVersion = configuration?.outputVersion;
const customConfig = {
...this.generator.workspaceConfig.defaultCustomConfig,
...(configuration?.customConfig as Record<string, unknown>)
};
const customConfig =
this.generator.workspaceConfig.defaultCustomConfig != null || configuration?.customConfig != null
? {
...this.generator.workspaceConfig.defaultCustomConfig,
...(configuration?.customConfig as Record<string, unknown>)
}
: undefined;
const publishConfig = configuration?.publishConfig;
const outputMode = configuration?.outputMode ?? this.generator.workspaceConfig.defaultOutputMode;
const irVersion = this.generator.workspaceConfig.irVersion;
Expand Down

0 comments on commit 09a70b5

Please sign in to comment.