Skip to content

Commit

Permalink
feat(test): add log output for instrumented tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skjsjhb committed Jan 1, 2025
1 parent eef43cd commit 3f4d5d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function build(variant: BuildVariant) {
define: defines,
outdir: outputDir,
metafile: true,
drop: isDev ? [] : ["console"]
drop: cfg.variant.mode === "production" ? ["console"] : undefined
};

const mainBuildOptions: BuildOptions = {
Expand Down
1 change: 1 addition & 0 deletions test/instrumented/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface TestSuiteSummary {
const suites: TestSuiteSummary[] = [];

async function run(name: string, exec: () => void | Promise<void>) {
console.log(`Executing test: ${name}`);
try {
await exec();
suites.push({
Expand Down

0 comments on commit 3f4d5d0

Please sign in to comment.