Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit 6d9a5ca

Browse files
authored
test: test npm install fix (#847)
1 parent 3249ea1 commit 6d9a5ca

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"files": [
7171
"build/src",
7272
"build/third_party/cloud-debug-nodejs",
73-
"bindings",
7473
"build/protos"
7574
],
7675
"nyc": {

system-test/integration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,15 @@ retry npm_install --nodedir="$NODEDIR"
9999
npm run compile
100100
npm pack --nodedir="$NODEDIR" >/dev/null
101101
VERSION=$(node -e "console.log(require('./package.json').version);")
102+
PROFILER="$HOME/cloud-profiler-nodejs/google-cloud-profiler-$VERSION.tgz"
102103
103104
TESTDIR="$HOME/test"
104105
mkdir -p "$TESTDIR"
105106
cp -r "system-test/busybench" "$TESTDIR"
106107
cd "$TESTDIR/busybench"
107108
108109
retry npm_install @mapbox/node-pre-gyp --save
109-
retry npm_install --nodedir="$NODEDIR" typescript gts; npm link ../../cloud-profiler-nodejs
110+
retry npm_install --nodedir="$NODEDIR" "$PROFILER" typescript gts
110111
111112
npm run compile
112113

test/test-init-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import * as sinon from 'sinon';
2020

2121
import {createProfiler, nodeVersionOkay} from '../src/index';
2222
import {Profiler} from '../src/profiler';
23-
import * as packageJson from '../package.json';
23+
const packageJson = require('../../package.json');
2424

2525
describe('nodeVersionOkay', () => {
2626
const version = parseInt(packageJson.engines.node.replace('>=', ''));

0 commit comments

Comments
 (0)