@@ -3,55 +3,57 @@ import { execSync } from 'node:child_process';
33import path from 'node:path' ;
44import process from 'node:process' ;
55
6- test ( '$env/dynamic/private is not statically importable from the client' , ( ) => {
6+ const timeout = 60_000 ;
7+
8+ test ( '$env/dynamic/private is not statically importable from the client' , { timeout } , ( ) => {
79 assert . throws (
810 ( ) =>
911 execSync ( 'pnpm build' , {
1012 cwd : path . join ( process . cwd ( ) , 'apps/private-dynamic-env' ) ,
1113 stdio : 'pipe' ,
12- timeout : 60000
14+ timeout
1315 } ) ,
1416 / .* C a n n o t i m p o r t \$ e n v \/ d y n a m i c \/ p r i v a t e i n t o c l i e n t - s i d e c o d e : .* / gs
1517 ) ;
1618} ) ;
1719
18- test ( '$env/dynamic/private is not dynamically importable from the client' , ( ) => {
20+ test ( '$env/dynamic/private is not dynamically importable from the client' , { timeout } , ( ) => {
1921 assert . throws (
2022 ( ) =>
2123 execSync ( 'pnpm build' , {
2224 cwd : path . join ( process . cwd ( ) , 'apps/private-dynamic-env-dynamic-import' ) ,
2325 stdio : 'pipe' ,
24- timeout : 60000
26+ timeout
2527 } ) ,
2628 / .* C a n n o t i m p o r t \$ e n v \/ d y n a m i c \/ p r i v a t e i n t o c l i e n t - s i d e c o d e : .* / gs
2729 ) ;
2830} ) ;
2931
30- test ( '$env/static/private is not statically importable from the client' , ( ) => {
32+ test ( '$env/static/private is not statically importable from the client' , { timeout } , ( ) => {
3133 assert . throws (
3234 ( ) =>
3335 execSync ( 'pnpm build' , {
3436 cwd : path . join ( process . cwd ( ) , 'apps/private-static-env' ) ,
3537 stdio : 'pipe' ,
36- timeout : 60000
38+ timeout
3739 } ) ,
3840 / .* C a n n o t i m p o r t \$ e n v \/ s t a t i c \/ p r i v a t e i n t o c l i e n t - s i d e c o d e : .* / gs
3941 ) ;
4042} ) ;
4143
42- test ( '$env/static/private is not dynamically importable from the client' , ( ) => {
44+ test ( '$env/static/private is not dynamically importable from the client' , { timeout } , ( ) => {
4345 assert . throws (
4446 ( ) =>
4547 execSync ( 'pnpm build' , {
4648 cwd : path . join ( process . cwd ( ) , 'apps/private-static-env-dynamic-import' ) ,
4749 stdio : 'pipe' ,
48- timeout : 60000
50+ timeout
4951 } ) ,
5052 / .* C a n n o t i m p o r t \$ e n v \/ s t a t i c \/ p r i v a t e i n t o c l i e n t - s i d e c o d e : .* / gs
5153 ) ;
5254} ) ;
5355
54- test ( '$env/dynamic/private is not importable from the service worker' , ( ) => {
56+ test ( '$env/dynamic/private is not importable from the service worker' , { timeout } , ( ) => {
5557 assert . throws (
5658 ( ) =>
5759 execSync ( 'pnpm build' , {
@@ -63,13 +65,13 @@ test('$env/dynamic/private is not importable from the service worker', () => {
6365 ) ;
6466} ) ;
6567
66- test ( '$env/dynamic/public is not importable from the service worker' , ( ) => {
68+ test ( '$env/dynamic/public is not importable from the service worker' , { timeout } , ( ) => {
6769 assert . throws (
6870 ( ) =>
6971 execSync ( 'pnpm build' , {
7072 cwd : path . join ( process . cwd ( ) , 'apps/service-worker-dynamic-public-env' ) ,
7173 stdio : 'pipe' ,
72- timeout : 60000
74+ timeout
7375 } ) ,
7476 / .* C a n n o t i m p o r t \$ e n v \/ d y n a m i c \/ p u b l i c i n t o s e r v i c e - w o r k e r c o d e .* / gs
7577 ) ;
0 commit comments