diff --git a/src/1-getting-started/4_object_factory/napi/package.json b/src/1-getting-started/4_object_factory/napi/package.json index ce8cfceb..5b752d33 100644 --- a/src/1-getting-started/4_object_factory/napi/package.json +++ b/src/1-getting-started/4_object_factory/napi/package.json @@ -5,6 +5,9 @@ "main": "addon.js", "private": true, "gypfile": true, + "scripts": { + "test": "node addon.js" + }, "dependencies": { "bindings": "~1.2.1" } diff --git a/src/1-getting-started/4_object_factory/node-addon-api/package.json b/src/1-getting-started/4_object_factory/node-addon-api/package.json index 1b8f7242..b522b82f 100644 --- a/src/1-getting-started/4_object_factory/node-addon-api/package.json +++ b/src/1-getting-started/4_object_factory/node-addon-api/package.json @@ -5,6 +5,9 @@ "main": "addon.js", "private": true, "gypfile": true, + "scripts": { + "test": "node addon.js" + }, "dependencies": { "bindings": "~1.2.1", "node-addon-api": "^8.0.0"