use `process.env.VITEST`
This commit is contained in:
parent
45cd81eaab
commit
add9e31d8d
|
@ -14,7 +14,7 @@ const external = [
|
||||||
export default defineConfig(({ mode }) => {
|
export default defineConfig(({ mode }) => {
|
||||||
const alias: Alias[] = []
|
const alias: Alias[] = []
|
||||||
|
|
||||||
if (mode === 'test') {
|
if (process.env.VITEST === 'true' || mode === 'test') {
|
||||||
alias.push({
|
alias.push({
|
||||||
/**
|
/**
|
||||||
* Note: `happy-dom` nor `jsdom` have Crypto implemented (@see https://github.com/jsdom/jsdom/issues/1612)
|
* Note: `happy-dom` nor `jsdom` have Crypto implemented (@see https://github.com/jsdom/jsdom/issues/1612)
|
||||||
|
|
Loading…
Reference in New Issue