Skip to content

Commit

Permalink
test: enable addon tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Nov 3, 2023
1 parent 9453526 commit ddfcdec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("node native addon", async () => {
outDir: "test/fixture/out/gyp",
cacheDir: "test/fixture/cache",
glob: false,
nativeAddon: true,
nativeAddon: "gyp",
};

it("builds native addon and executes", async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import * as addonTests from "./addon.js";
import * as addonTests from "./addon.js";
import * as modeTests from "./mode.js";

// addonTests;
addonTests;
modeTests;
3 changes: 2 additions & 1 deletion test/fixture/demo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import nwbuild from "nw-builder";

await nwbuild({
srcDir: "app",
srcDir: "gyp",
mode: "build",
glob: false,
logLevel: "debug",
nativeAddon: "gyp",
});

0 comments on commit ddfcdec

Please sign in to comment.