Skip to content

Commit

Permalink
feat: rename vitest.config.ts to avoid warning; add empty caseConfig … (
Browse files Browse the repository at this point in the history
#561)

* feat: rename vitest.config.ts to avoid warning; add empty caseConfig warning info

* chore: fmt

---------

Co-authored-by: pengbo43 <pengbo43@jd.com>
  • Loading branch information
PengBoUESTC and pengbo43 committed Mar 12, 2024
1 parent 2cc0f74 commit da06dde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/rolldown/test/runner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { describe, expect, test } from 'vitest'
import { describe, test } from 'vitest'
import { yellow } from 'colorette'
import { InputOptions, OutputOptions, RollupOptions, rolldown } from 'rolldown'
import path from 'node:path'
import fs from 'node:fs'
Expand All @@ -16,7 +17,11 @@ function runCases() {

for (const subCaseName of subCases) {
const caseRoot = path.join(subCasesRoot, subCaseName)
const { config, afterTest } = await getCaseConfig(caseRoot)
const caseConfig = await getCaseConfig(caseRoot)
if (!caseConfig) {
console.log(yellow(`[config] is empty in ${caseRoot}`))
}
const { config, afterTest } = caseConfig || {}

test(subCaseName, async () => {
const output = await runCaseBundle(caseRoot, config)
Expand Down
File renamed without changes.

0 comments on commit da06dde

Please sign in to comment.