@@ -11,9 +11,8 @@ describe('helpers/environment', () => {
1111
1212 describe ( 'Local' , ( ) => {
1313 test ( 'Dev' , async ( ) => {
14- const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import (
15- './index.js'
16- ) ;
14+ const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
15+ await import ( './index.js' ) ;
1716
1817 expect ( isBuildTime ) . toBe ( false ) ;
1918 expect ( isEdgeRuntime ) . toBe ( false ) ;
@@ -25,9 +24,8 @@ describe('helpers/environment', () => {
2524 test ( 'Build' , async ( ) => {
2625 vi . stubEnv ( 'NEXT_PHASE' , 'phase-production-build' ) ;
2726
28- const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import (
29- './index.js'
30- ) ;
27+ const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
28+ await import ( './index.js' ) ;
3129
3230 expect ( isBuildTime ) . toBe ( true ) ;
3331 expect ( isEdgeRuntime ) . toBe ( false ) ;
@@ -38,9 +36,8 @@ describe('helpers/environment', () => {
3836
3937 test ( 'Production' , async ( ) => {
4038 vi . stubEnv ( 'NODE_ENV' , 'production' ) ;
41- const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import (
42- './index.js'
43- ) ;
39+ const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
40+ await import ( './index.js' ) ;
4441
4542 expect ( isBuildTime ) . toBe ( false ) ;
4643 expect ( isEdgeRuntime ) . toBe ( false ) ;
@@ -58,9 +55,8 @@ describe('helpers/environment', () => {
5855 vi . stubEnv ( 'NEXT_PUBLIC_VERCEL_ENV' , 'production' ) ;
5956 vi . stubEnv ( 'VERCEL' , '1' ) ;
6057
61- const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import (
62- './index.js'
63- ) ;
58+ const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
59+ await import ( './index.js' ) ;
6460
6561 expect ( isBuildTime ) . toBe ( true ) ;
6662 expect ( isEdgeRuntime ) . toBe ( false ) ;
@@ -73,9 +69,8 @@ describe('helpers/environment', () => {
7369 vi . stubEnv ( 'NEXT_PUBLIC_VERCEL_ENV' , 'production' ) ;
7470 vi . stubEnv ( 'VERCEL' , '1' ) ;
7571
76- const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import (
77- './index.js'
78- ) ;
72+ const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
73+ await import ( './index.js' ) ;
7974
8075 expect ( isBuildTime ) . toBe ( false ) ;
8176 expect ( isEdgeRuntime ) . toBe ( false ) ;
@@ -88,9 +83,8 @@ describe('helpers/environment', () => {
8883 vi . stubEnv ( 'NEXT_PUBLIC_VERCEL_ENV' , 'preview' ) ;
8984 vi . stubEnv ( 'VERCEL' , '1' ) ;
9085
91- const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import (
92- './index.js'
93- ) ;
86+ const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
87+ await import ( './index.js' ) ;
9488
9589 expect ( isBuildTime ) . toBe ( false ) ;
9690 expect ( isEdgeRuntime ) . toBe ( false ) ;
@@ -113,9 +107,8 @@ describe('helpers/environment', () => {
113107 vi . stubEnv ( 'NEXT_PUBLIC_VERCEL_ENV' , 'production' ) ;
114108 vi . stubEnv ( 'VERCEL' , '1' ) ;
115109
116- const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import (
117- './index.js'
118- ) ;
110+ const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
111+ await import ( './index.js' ) ;
119112
120113 expect ( isBuildTime ) . toBe ( false ) ;
121114 expect ( isEdgeRuntime ) . toBe ( true ) ;
@@ -128,9 +121,8 @@ describe('helpers/environment', () => {
128121 vi . stubEnv ( 'NEXT_PUBLIC_VERCEL_ENV' , 'preview' ) ;
129122 vi . stubEnv ( 'VERCEL' , '1' ) ;
130123
131- const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } = await import (
132- './index.js'
133- ) ;
124+ const { isBuildTime, isEdgeRuntime, isLambdaRuntime, isProduction, isServerlessRuntime } =
125+ await import ( './index.js' ) ;
134126
135127 expect ( isBuildTime ) . toBe ( false ) ;
136128 expect ( isEdgeRuntime ) . toBe ( true ) ;
0 commit comments