@@ -12,6 +12,8 @@ const ALLOW_LIST = [
1212 "js-native-api/common-inl.h" ,
1313 "js-native-api/entry_point.h" ,
1414 "js-native-api/2_function_arguments" ,
15+ // "node-api/test_async",
16+ // "node-api/test_buffer",
1517] ;
1618
1719console . log ( "Copying files to" , TESTS_DIR ) ;
@@ -35,10 +37,14 @@ if (!fs.existsSync(NODE_REPO_DIR)) {
3537 cwd : NODE_REPO_DIR ,
3638 } ) ;
3739 // Enable sparse checkout
38- cp . execFileSync ( "git" , [ "sparse-checkout" , "set" , "test/js-native-api" ] , {
39- stdio : "inherit" ,
40- cwd : NODE_REPO_DIR ,
41- } ) ;
40+ cp . execFileSync (
41+ "git" ,
42+ [ "sparse-checkout" , "set" , "test/js-native-api" , "test/node-api" ] ,
43+ {
44+ stdio : "inherit" ,
45+ cwd : NODE_REPO_DIR ,
46+ }
47+ ) ;
4248 // Pull the latest changes from the master branch
4349 console . log ( "Pulling latest changes from Node.js repository..." ) ;
4450 cp . execFileSync ( "git" , [ "pull" , "--depth=1" , "origin" , "main" ] , {
@@ -63,7 +69,3 @@ for (const src of ALLOW_LIST) {
6369 console . log ( "Copying from" , srcPath , "to" , destPath ) ;
6470 fs . cpSync ( srcPath , destPath , { recursive : true } ) ;
6571}
66-
67- if ( ! fs . existsSync ( path . join ( TESTS_DIR , "common.js" ) ) ) {
68- // TODO: Perform a symlink of a common.js file from src/common.js
69- }
0 commit comments