Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5df863c
test: remove --proxyquire-shim from common, bigquery, datastore, and dns
danieljbruce Oct 15, 2026
d2820c8
[Address CI errors] test: support function stubs and guard read-only …
danieljbruce Oct 19, 2026
0a61c5e
test: remove --proxyquire-shim from logging and pubsub packages
danieljbruce Oct 15, 2026
1b74f20
[Address CI errors] test: support function stubs and guard read-only …
danieljbruce Oct 19, 2026
3ab8240
[Address review comments] test(logging): use assert.rejects for promi…
danieljbruce Oct 19, 2026
401b5a0
test: remove --proxyquire-shim from bigtable, spanner, and storage
danieljbruce Oct 15, 2026
97ffe67
[Address CI errors] test: support function stubs and guard read-only …
danieljbruce Oct 19, 2026
01e56cd
[Address review comments] test: use Proxy for call-through fallback i…
danieljbruce Oct 19, 2026
f8fe217
refactor(test-utils): centralize proxyquire helper in google-test-uti…
danieljbruce Oct 20, 2026
c4635f4
Merge branch 'fix/remove-proxyquire-shim-core-dns-ds-bq' into fix/rem…
danieljbruce Oct 20, 2026
dd814a5
refactor(logging,pubsub): use centralized proxyquire from google-test…
danieljbruce Oct 20, 2026
b2ee9d1
Merge branch 'fix/remove-proxyquire-shim-logging-pubsub' into fix/rem…
danieljbruce Oct 20, 2026
3600074
refactor(bigtable,spanner,storage): use centralized proxyquire from g…
danieljbruce Oct 20, 2026
c239d88
[Address CI errors] test(test-utils): use native Module.createRequire…
danieljbruce Oct 20, 2026
97552c5
Merge branch 'fix/remove-proxyquire-shim-core-dns-ds-bq' into fix/rem…
danieljbruce Oct 20, 2026
dfb893a
Merge branch 'fix/remove-proxyquire-shim-logging-pubsub' into fix/rem…
danieljbruce Oct 20, 2026
0933524
Merge remote-tracking branch 'upstream/main' into fix/remove-proxyqui…
danieljbruce Oct 27, 2026
31b82b9
[Address CI errors] fix(test-utils): remove precompile clean to avoid…
danieljbruce Oct 27, 2026
36f3c04
[Address CI errors] test(bigquery): avoid jobs.insert completion race…
danieljbruce Oct 27, 2026
c946661
Merge branch 'fix/remove-proxyquire-shim-core-dns-ds-bq' into fix/rem…
danieljbruce Oct 27, 2026
73eadab
Merge branch 'fix/remove-proxyquire-shim-logging-pubsub' into fix/rem…
danieljbruce Oct 27, 2026
2d02efb
chore: merge main and use released google-test-utils@^0.4.0 without y…
danieljbruce Oct 29, 2026
beff05e
chore: merge base branch and use released google-test-utils@^0.4.0 wi…
danieljbruce Oct 29, 2026
d2f531a
chore: merge base branch and use released google-test-utils@^0.4.0 wi…
danieljbruce Oct 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"scripts": {
"docs": "jsdoc -c .jsdoc.js",
"test": "node ../../bin/run-test.cjs --proxyquire-shim build/test",
"test": "node ../../bin/run-test.cjs build/test",
"prepare": "npm run compile",
"pretest": "npm run compile",
"compile": "tsc -p .",
Expand Down Expand Up @@ -57,6 +57,7 @@
"@types/tmp": "^0.2.6",
"c8": "^10.1.3",
"codecov": "^3.8.3",
"google-test-utils": "^0.4.0",
"gts": "^6.0.2",
"jsdoc": "^4.0.4",
"jsdoc-fresh": "^6.1.0",
Expand Down
3 changes: 2 additions & 1 deletion core/common/test/service-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import {
import * as assert from 'assert';
import {describe, it, beforeEach, afterEach} from 'mocha';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
// eslint-disable-next-line import/namespace
import * as r from 'teeny-request';
import * as sinon from 'sinon';

Expand Down
2 changes: 1 addition & 1 deletion core/common/test/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as assert from 'assert';
import {describe, it, before, beforeEach, after} from 'mocha';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {Request} from 'teeny-request';
import {AuthClient, GoogleAuth, OAuth2Client} from 'google-auth-library';

Expand Down
2 changes: 1 addition & 1 deletion core/common/test/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
OAuth2Client,
} from 'google-auth-library';
import * as nock from 'nock';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as retryRequest from 'retry-request';
import * as sinon from 'sinon';
import * as stream from 'stream';
Expand Down
3 changes: 2 additions & 1 deletion handwritten/bigquery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"docs": "jsdoc -c .jsdoc.js",
"lint": "gts check",
"samples-test": "cd samples/ && pnpm link ../ && pnpm test && cd ../",
"test": "node ../../bin/run-test.cjs --proxyquire-shim build/test",
"test": "node ../../bin/run-test.cjs build/test",
"system-test": "node ../../bin/run-test.cjs build/system-test --timeout 600000",
"presystem-test": "pnpm run compile",
"clean": "gts clean",
Expand Down Expand Up @@ -91,6 +91,7 @@
"codecov": "^3.8.3",
"discovery-tsd": "^0.3.0",
"eslint-plugin-prettier": "^5.2.6",
"google-test-utils": "^0.4.0",
"gts": "^6.0.2",
"jsdoc": "^4.0.4",
"jsdoc-fresh": "^6.1.0",
Expand Down
3 changes: 2 additions & 1 deletion handwritten/bigquery/system-test/arrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ describe('Arrow Query Results', () => {

it('should raise the same error as query() when a jobs.insert query fails during execution', async () => {
const failingQuery = {
query: 'SELECT 1 / 0',
query:
'DECLARE n INT64 DEFAULT 50; SELECT 1 / (x - 50) FROM UNNEST(GENERATE_ARRAY(1, n)) AS x ORDER BY x;',
jobTimeoutMs: 60000,
useQueryCache: false,
};
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigquery/test/bigquery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import * as assert from 'assert';
import {describe, it, after, afterEach, before, beforeEach} from 'mocha';
import * as Big from 'big.js';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import * as crypto from 'crypto';

Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigquery/test/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {describe, it, before, beforeEach} from 'mocha';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';

import * as _root from '../src';
import {toArray} from '../src/util';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigquery/test/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {DecorateRequestOptions, util} from '@google-cloud/common';
import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {describe, it, beforeEach, afterEach, before} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';

import {BigQuery} from '../src/bigquery';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigquery/test/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as assert from 'assert';
import {describe, it, before, beforeEach, afterEach} from 'mocha';
import * as sinon from 'sinon';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as pfy from '@google-cloud/promisify';
import {EventEmitter} from 'events';
import {JobOptions} from '../src/job';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigquery/test/routine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {describe, it, before, beforeEach} from 'mocha';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';

import * as _root from '../src';

Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigquery/test/rowQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {util} from '@google-cloud/common';
import * as assert from 'assert';
import {describe, it, before, beforeEach, afterEach} from 'mocha';
import {Duplex, Stream} from 'stream';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import * as q from '../src/rowQueue';
import * as t from '../src/table';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigquery/test/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {describe, it, afterEach, beforeEach, before, after} from 'mocha';
import * as Big from 'big.js';
import {EventEmitter} from 'events';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import * as stream from 'stream';
import * as crypto from 'crypto';
Expand Down
3 changes: 2 additions & 1 deletion handwritten/bigtable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"presystem-test": "pnpm run compile",
"system-test": "node ../../bin/run-test.cjs build/system-test --timeout 600000 --retries 3",
"pretest": "pnpm run compile",
"test": "node ../../bin/run-test.cjs --proxyquire-shim build/test",
"test": "node ../../bin/run-test.cjs build/test",
"test:snap": "SNAPSHOT_UPDATE=1 pnpm test",
"testproxy": "pnpm run compile && node build/testproxy/index.js",
"clean": "gts clean",
Expand Down Expand Up @@ -93,6 +93,7 @@
"c8": "^10.1.3",
"codecov": "^3.8.3",
"gapic-tools": "^2.2.0",
"google-test-utils": "^0.4.0",
"gts": "^6.0.2",
"jsdoc": "^4.0.4",
"jsdoc-fresh": "^6.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import {ResourceMetrics} from '@opentelemetry/sdk-metrics';
import * as assert from 'assert';
import {GCPMetricsHandler} from '../src/client-side-metrics/gcp-metrics-handler';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {Bigtable, RawFilter} from '../src';
import {Mutation} from '../src/mutation';
import {Row} from '../src/row';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/system-test/client-side-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import {ResourceMetrics} from '@opentelemetry/sdk-metrics';
import * as assert from 'assert';
import {GCPMetricsHandler} from '../src/client-side-metrics/gcp-metrics-handler';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {Bigtable, BigtableOptions} from '../src';
import {Row} from '../src/row';
import {
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/system-test/gcp-metrics-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {Bigtable} from '../src';
import {ResourceMetrics} from '@opentelemetry/sdk-metrics';
import * as assert from 'assert';
import {ClientOptions} from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';

function getHandler(Exporter: typeof CloudMonitoringExporter) {
const FakeCGPMetricsHandler = proxyquire(
Expand Down
7 changes: 5 additions & 2 deletions handwritten/bigtable/system-test/read-rows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {EventEmitter} from 'events';
import {Test} from './testTypes';
import {ServiceError, GrpcClient, GoogleError, CallOptions} from 'google-gax';
import {PassThrough} from 'stream';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {TabularApiSurface} from '../src/tabular-api-surface';
import * as mocha from 'mocha';
import {generateId} from './common';
Expand Down Expand Up @@ -141,7 +141,10 @@ describe('Bigtable/Table', () => {
'An error should have been thrown because the client is closed',
);
} catch (err: any) {
assert.strictEqual(err.message, 'The client has already been closed.');
assert.strictEqual(
err.message,
'The client has already been closed.',
);
}
} finally {
const bigtableSecondClient = new Bigtable();
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/app-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {describe, it, before, beforeEach} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {CallOptions} from 'google-gax';

let promisified = false;
Expand Down Expand Up @@ -48,7 +48,7 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id: any;
name: string;
bigtable: any;

Check warning on line 51 in handwritten/bigtable/test/app-profile.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructor(instance: any, id: any) {
this.instance = instance;
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, describe, it, afterEach} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as pumpify from 'pumpify';
import {ServiceError} from 'google-gax';

Expand Down Expand Up @@ -259,7 +259,7 @@
(
err?: ServiceError | Error | null,
backup?: Backup | null,
config?: any,

Check warning on line 262 in handwritten/bigtable/test/backup.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
) => {
assert.strictEqual(
backup?.name,
Expand Down
1 change: 0 additions & 1 deletion handwritten/bigtable/test/base64keymap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
// limitations under the License.

import * as assert from 'assert';
import {describe, it, before, beforeEach, afterEach} from 'mocha';

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'afterEach' is defined but never used

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'beforeEach' is defined but never used

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'before' is defined but never used
import Long = require('long');

Check warning on line 17 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'Long' is defined but never used
import * as proxyquire from 'proxyquire';
import * as sn from 'sinon';

Check warning on line 18 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'sn' is defined but never used

import {RowStateEnum} from '../src/chunktransformer.js';

Check warning on line 20 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'RowStateEnum' is defined but never used
import {Mutation} from '../src/mutation.js';

Check warning on line 21 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'Mutation' is defined but never used
import {Row} from '../src/row.js';

Check warning on line 22 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'Row' is defined but never used
import {EncodedKeyMap, SqlValue} from '../src/execute-query/values.js';

describe('Bigtable/EncodedKeyMap', () => {
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/chunktransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as assert from 'assert';
import {describe, it, before, beforeEach, afterEach} from 'mocha';
import Long = require('long');
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sn from 'sinon';

import {RowStateEnum} from '../src/chunktransformer.js';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {PassThrough, Readable} from 'stream';
import {CallOptions} from 'google-gax';
import {PreciseDate} from '@google-cloud/precise-date';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/executequery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as sinon from 'sinon';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {grpc} from 'google-gax';
import * as inst from '../src/instance';
import {Bigtable} from '../src';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/family.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import {protos} from '@google-cloud/bigtable-api';
import google = protos.google;
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import * as assert from 'assert';
import {afterEach, before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import * as fr from '../src/filter';
import {Row} from '../src/row';
Expand Down
3 changes: 2 additions & 1 deletion handwritten/bigtable/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {afterEach, before, beforeEach, describe, it} from 'mocha';
import * as gax from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sn from 'sinon';

import {Cluster} from '../src/cluster.js';
Expand Down Expand Up @@ -1216,6 +1216,7 @@ describe('Bigtable', () => {
});
describe('close', () => {
it('should have failed request after close is called', done => {
// eslint-disable-next-line promise/catch-or-return, promise/always-return
bigtable.close().then(() => {
bigtable.getInstances((err: Error) => {
if (err) {
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as sinon from 'sinon';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {ServiceError} from 'google-gax';
import * as snapshot from 'snap-shot-it';
import {Readable} from 'stream';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {ClientOptions, grpc} from 'google-gax';
import * as assert from 'assert';
import {MetricServiceClient} from '@google-cloud/monitoring';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
} from '../../test-common/expected-otel-export-input';
import * as assert from 'assert';
import {replaceTimestamps} from '../../test-common/replace-timestamps';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';

/**
* Cleans a ResourceMetrics object by replacing client UUIDs with a placeholder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
import {grpc} from 'google-gax';
import {expectedRequestsHandled} from '../../test-common/metrics-handler-fixture';
import * as gax from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {GCPMetricsHandler} from '../../src/client-side-metrics/gcp-metrics-handler';
import {getProtoPath} from '../../src/utils/protos';
const protoPath = getProtoPath('google/bigtable/v2/response_params.proto');
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {afterEach, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import {Mutation} from '../src/mutation.js';
import '../src/table';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {afterEach, before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as pumpify from 'pumpify';
import * as sinon from 'sinon';
import {PassThrough, Writable, Duplex} from 'stream';
Expand Down
3 changes: 2 additions & 1 deletion handwritten/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"presystem-test": "npm run compile",
"system-test": "node ../../bin/run-test.cjs build/system-test --timeout 600000",
"pretest": "npm run compile",
"test": "node ../../bin/run-test.cjs --proxyquire-shim build/test",
"test": "node ../../bin/run-test.cjs build/test",
"precompile": "gts clean"
},
"dependencies": {
Expand Down Expand Up @@ -68,6 +68,7 @@
"async": "^3.2.6",
"c8": "^10.1.3",
"gapic-tools": "^2.2.0",
"google-test-utils": "^0.4.0",
"gts": "^6.0.2",
"js-yaml": "^4.1.0",
"jsdoc": "^4.0.4",
Expand Down
2 changes: 1 addition & 1 deletion handwritten/datastore/system-test/transaction-spy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {DatastoreRequest} from '../src';
import {RequestCallback, RequestConfig} from '../src/request';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
DatastoreOptions,
} from '../../src';
import * as assert from 'assert';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {Callback, CallOptions} from 'google-gax';
import * as protos from '../../src/protos';
import * as ds from '../../src';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/datastore/test/index-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';

import * as ds from '../src';

Expand Down
2 changes: 1 addition & 1 deletion handwritten/datastore/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as assert from 'assert';
import {before, beforeEach, after, afterEach, describe, it} from 'mocha';
import * as gax from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {PassThrough, Readable} from 'stream';

import * as ds from '../src';
Expand Down
Loading
Loading