Skip to content

Commit 48accc4

Browse files
GuillaumeLagrangeart049
authored andcommitted
fix(core): fix tests failing after running pnpm install
`node-gyp` was being too smart for its own good and was actually falling back to the local build, which should not be allowed for this test!
1 parent f6d18d3 commit 48accc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/tests/index.integ.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ describe("without bindings", () => {
1616
const initialEnv = process.env;
1717
beforeAll(() => {
1818
process.env.npm_config_arch = "unknown";
19+
// Prevent node-gyp from falling back to a local version of the native core in packages/core/build
20+
process.env.PREBUILDS_ONLY = "1";
1921
});
2022
afterAll(() => {
2123
process.env = initialEnv;

0 commit comments

Comments
 (0)