Skip to content

Commit 1e9fe1c

Browse files
chemitaxisymc9jiashengguo
authored
fix: require with default (#546)
Co-authored-by: Yiming <yiming@whimslab.io> Co-authored-by: Jiasheng <jiashengguo@outlook.com> Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
1 parent 05b5554 commit 1e9fe1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/enhancements/model-meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function getDefaultModelMeta(): ModelMeta {
1010
try {
1111
if (process.env.NODE_ENV === 'test') {
1212
// handling the case when running as tests, resolve relative to CWD
13-
return require(path.join(process.cwd(), 'node_modules', '.zenstack', 'model-meta'));
13+
return require(path.join(process.cwd(), 'node_modules', '.zenstack', 'model-meta')).default;
1414
} else {
1515
return require('.zenstack/model-meta').default;
1616
}

0 commit comments

Comments
 (0)