From afae9ee6a3b23576cd342a8810237fcd2a47a550 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Tue, 12 Nov 2024 14:30:27 +0100 Subject: [PATCH] ci: test conditional imports/exports --- .github/workflows/test-and-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 78baa671f90e..295836592ae8 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -140,6 +140,9 @@ jobs: node -e 'assert.equal(require("zwave-js").libVersion, require("zwave-js/package.json").version)' node -e 'assert.equal(require("zwave-js").libName, require("zwave-js/package.json").name)' + echo "Doing spot checks for some exports" + node -e 'assert.equal(typeof require("@zwave-js/core").randomBytes, "function")' + # Test if bundling for the browser is supported yet - name: Are we browser yet? continue-on-error: true