Skip to content

Commit

Permalink
fix(compiler): no generate custom output (#5951)
Browse files Browse the repository at this point in the history
Do not generate custom output target on test

fixes: #5950
  • Loading branch information
Sukaato authored Aug 30, 2024
1 parent 9c09faa commit 5cddfd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compiler/output-targets/output-custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import type * as d from '../../declarations';
import { generateDocData } from '../docs/generate-doc-data';

export const outputCustom = async (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => {
if (config._isTesting) {
return;
}

const task = config.watch ? 'always' : 'onBuildOnly';
const customOutputTargets = config.outputTargets
.filter(isOutputTargetCustom)
Expand Down

0 comments on commit 5cddfd9

Please sign in to comment.