Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 917e51a

Browse files
committed
feat(helper): I included the test environment in isInDevelopment.
1 parent db27c7d commit 917e51a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_internal/utils/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as path from 'path';
44

55
export const isWindowDefined = typeof window !== 'undefined';
66
export const isDocumentDefined = typeof document !== 'undefined';
7-
export const isInDevelopment = process.env.NODE_ENV === 'development';
7+
export const isInDevelopment = process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test';
88

99
const exception = ['line-height', 'font-weight', 'opacity', 'scale', 'z-index'];
1010

0 commit comments

Comments
 (0)