Skip to content

Commit

Permalink
test: test npm install fix (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanmar511 authored Jul 7, 2022
1 parent 3249ea1 commit 6d9a5ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"files": [
"build/src",
"build/third_party/cloud-debug-nodejs",
"bindings",
"build/protos"
],
"nyc": {
Expand Down
3 changes: 2 additions & 1 deletion system-test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,15 @@ retry npm_install --nodedir="$NODEDIR"
npm run compile
npm pack --nodedir="$NODEDIR" >/dev/null
VERSION=$(node -e "console.log(require('./package.json').version);")
PROFILER="$HOME/cloud-profiler-nodejs/google-cloud-profiler-$VERSION.tgz"
TESTDIR="$HOME/test"
mkdir -p "$TESTDIR"
cp -r "system-test/busybench" "$TESTDIR"
cd "$TESTDIR/busybench"
retry npm_install @mapbox/node-pre-gyp --save
retry npm_install --nodedir="$NODEDIR" typescript gts; npm link ../../cloud-profiler-nodejs
retry npm_install --nodedir="$NODEDIR" "$PROFILER" typescript gts
npm run compile
Expand Down
2 changes: 1 addition & 1 deletion test/test-init-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as sinon from 'sinon';

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

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

0 comments on commit 6d9a5ca

Please sign in to comment.