From 6982608bad947a9687be66e78320f695dd9a7b4e Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Mon, 3 Jun 2024 07:23:41 +0000 Subject: [PATCH] feat: add test script for object factory --- src/1-getting-started/4_object_factory/napi/package.json | 3 +++ .../4_object_factory/node-addon-api/package.json | 3 +++ 2 files changed, 6 insertions(+) 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"