@@ -38,7 +38,7 @@ def tearDown(self):
38
38
shutil .rmtree (self .artifacts_dir )
39
39
shutil .rmtree (self .scratch_dir )
40
40
41
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
41
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
42
42
def test_builds_javascript_project_with_dependencies (self , runtime ):
43
43
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-esbuild" )
44
44
@@ -59,7 +59,7 @@ def test_builds_javascript_project_with_dependencies(self, runtime):
59
59
output_files = set (os .listdir (self .artifacts_dir ))
60
60
self .assertEqual (expected_files , output_files )
61
61
62
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
62
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
63
63
def test_builds_javascript_project_with_multiple_entrypoints (self , runtime ):
64
64
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-esbuild-multiple-entrypoints" )
65
65
@@ -80,7 +80,7 @@ def test_builds_javascript_project_with_multiple_entrypoints(self, runtime):
80
80
output_files = set (os .listdir (self .artifacts_dir ))
81
81
self .assertEqual (expected_files , output_files )
82
82
83
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
83
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
84
84
def test_builds_typescript_projects (self , runtime ):
85
85
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-esbuild-typescript" )
86
86
@@ -101,7 +101,7 @@ def test_builds_typescript_projects(self, runtime):
101
101
output_files = set (os .listdir (self .artifacts_dir ))
102
102
self .assertEqual (expected_files , output_files )
103
103
104
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
104
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
105
105
def test_builds_with_external_esbuild (self , runtime ):
106
106
source_dir = os .path .join (self .TEST_DATA_FOLDER , "no-deps-esbuild" )
107
107
options = {"entry_points" : ["included.js" ]}
@@ -121,7 +121,7 @@ def test_builds_with_external_esbuild(self, runtime):
121
121
output_files = set (os .listdir (self .artifacts_dir ))
122
122
self .assertEqual (expected_files , output_files )
123
123
124
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
124
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
125
125
def test_no_options_passed_to_esbuild (self , runtime ):
126
126
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-esbuild" )
127
127
@@ -138,7 +138,7 @@ def test_no_options_passed_to_esbuild(self, runtime):
138
138
139
139
self .assertEqual (str (context .exception ), "NodejsNpmEsbuildBuilder:EsbuildBundle - entry_points not set ({})" )
140
140
141
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
141
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
142
142
def test_bundle_with_implicit_file_types (self , runtime ):
143
143
source_dir = os .path .join (self .TEST_DATA_FOLDER , "implicit-file-types" )
144
144
@@ -159,7 +159,7 @@ def test_bundle_with_implicit_file_types(self, runtime):
159
159
output_files = set (os .listdir (self .artifacts_dir ))
160
160
self .assertEqual (expected_files , output_files )
161
161
162
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
162
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
163
163
def test_bundles_project_without_dependencies (self , runtime ):
164
164
source_dir = os .path .join (self .TEST_DATA_FOLDER , "no-package-esbuild" )
165
165
options = {"entry_points" : ["included" ]}
@@ -185,7 +185,7 @@ def test_bundles_project_without_dependencies(self, runtime):
185
185
output_files = set (os .listdir (self .artifacts_dir ))
186
186
self .assertEqual (expected_files , output_files )
187
187
188
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
188
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
189
189
def test_builds_project_with_remote_dependencies_without_download_dependencies_with_dependencies_dir (self , runtime ):
190
190
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-no-node_modules" )
191
191
options = {"entry_points" : ["included.js" ]}
@@ -213,7 +213,7 @@ def test_builds_project_with_remote_dependencies_without_download_dependencies_w
213
213
output_files = set (os .listdir (self .artifacts_dir ))
214
214
self .assertEqual (expected_files , output_files )
215
215
216
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
216
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
217
217
def test_builds_project_with_remote_dependencies_with_download_dependencies_and_dependencies_dir (self , runtime ):
218
218
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-no-node_modules" )
219
219
options = {"entry_points" : ["included.js" ]}
@@ -243,7 +243,7 @@ def test_builds_project_with_remote_dependencies_with_download_dependencies_and_
243
243
output_dependencies_files = set (os .listdir (os .path .join (self .dependencies_dir )))
244
244
self .assertNotIn (expected_dependencies_files , output_dependencies_files )
245
245
246
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
246
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
247
247
def test_builds_project_with_remote_dependencies_without_download_dependencies_without_dependencies_dir (
248
248
self , runtime
249
249
):
@@ -268,7 +268,7 @@ def test_builds_project_with_remote_dependencies_without_download_dependencies_w
268
268
" workflow can't include a dependencies directory without installing dependencies." ,
269
269
)
270
270
271
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
271
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
272
272
def test_builds_project_without_combine_dependencies (self , runtime ):
273
273
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-no-node_modules" )
274
274
options = {"entry_points" : ["included.js" ]}
@@ -299,7 +299,7 @@ def test_builds_project_without_combine_dependencies(self, runtime):
299
299
output_dependencies_files = set (os .listdir (os .path .join (self .dependencies_dir )))
300
300
self .assertNotIn (expected_dependencies_files , output_dependencies_files )
301
301
302
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
302
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
303
303
def test_builds_javascript_project_with_external (self , runtime ):
304
304
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-esbuild-externals" )
305
305
@@ -324,7 +324,7 @@ def test_builds_javascript_project_with_external(self, runtime):
324
324
# Check that the module has been require() instead of bundled
325
325
self .assertIn ('require("minimal-request-promise")' , js_file )
326
326
327
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
327
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
328
328
def test_builds_javascript_project_with_loader (self , runtime ):
329
329
osutils = OSUtils ()
330
330
source_dir = os .path .join (self .TEST_DATA_FOLDER , "no-deps-esbuild-loader" )
@@ -366,7 +366,7 @@ def test_builds_javascript_project_with_loader(self, runtime):
366
366
),
367
367
)
368
368
369
- @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,)])
369
+ @parameterized .expand ([("nodejs12.x" ,), ("nodejs14.x" ,), ("nodejs16.x" ,), ( "nodejs18.x" ,) ])
370
370
def test_includes_sourcemap_if_requested (self , runtime ):
371
371
source_dir = os .path .join (self .TEST_DATA_FOLDER , "with-deps-esbuild" )
372
372
0 commit comments