Skip to content

Commit 202b582

Browse files
committed
test: don't run lunaria build for playwright test
1 parent c281739 commit 202b582

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/lunaria.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineNuxtModule, useNuxt } from 'nuxt/kit'
22
import { execSync } from 'node:child_process'
33
import { join } from 'node:path'
44
import { existsSync, mkdirSync } from 'node:fs'
5-
import { isCI } from 'std-env'
5+
import { isCI, isTest } from 'std-env'
66

77
export default defineNuxtModule({
88
meta: {
@@ -20,7 +20,7 @@ export default defineNuxtModule({
2020
maxAge: 60 * 60 * 24, // 1 day
2121
})
2222

23-
if (nuxt.options.dev || nuxt.options._prepare || nuxt.options.test) {
23+
if (nuxt.options.dev || nuxt.options._prepare || nuxt.options.test || isTest) {
2424
return
2525
}
2626

0 commit comments

Comments
 (0)