Skip to content

Commit 68fe885

Browse files
committed
Modified verison of emulator and implemented v1beta upgrade
1 parent a7b6922 commit 68fe885

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

packages/data-connect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"dev": "rollup -c -w",
3636
"test": "run-p --npm-path npm test:emulator",
3737
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test:emulator",
38-
"test:all": "npm run test:unit",
38+
"test:all": "run-p --npm-path npm lint test:unit",
3939
"test:browser": "karma start --single-run",
4040
"test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
4141
"test:unit": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/unit/**/*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",

packages/data-connect/test/dataconnect/connector/connector.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ authMode: "PUBLIC"
33
generate:
44
javascriptSdk:
55
outputDir: "./gen/web"
6-
jsPackageName: "@movie-app-ssr/movies"
6+
package: "@movie-app-ssr/movies"

packages/data-connect/test/dataconnect/dataconnect.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
specVersion: "v1alpha"
22
serviceId: "dataconnect"
3+
location: "us-west2"
34
schema:
45
source: "./schema"
56
datasource:

packages/data-connect/test/unit/userAgent.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('User Agent Tests', () => {
5454
// @ts-ignore
5555
await executeQuery(queryRef(dc, '')).catch(() => {});
5656
expect(fakeFetchImpl).to.be.calledWithMatch(
57-
'https://firebasedataconnect.googleapis.com/v1alpha/projects/p/locations/l/services/s/connectors/c:executeQuery',
57+
'https://firebasedataconnect.googleapis.com/v1beta/projects/p/locations/l/services/s/connectors/c:executeQuery',
5858
{
5959
headers: {
6060
['X-Goog-Api-Client']: 'gl-js/ fire/' + SDK_VERSION + ' web/gen'
@@ -66,7 +66,7 @@ describe('User Agent Tests', () => {
6666
// @ts-ignore
6767
await executeQuery(queryRef(dc, '')).catch(() => {});
6868
expect(fakeFetchImpl).to.be.calledWithMatch(
69-
'https://firebasedataconnect.googleapis.com/v1alpha/projects/p/locations/l/services/s/connectors/c:executeQuery',
69+
'https://firebasedataconnect.googleapis.com/v1beta/projects/p/locations/l/services/s/connectors/c:executeQuery',
7070
{
7171
headers: {
7272
['X-Goog-Api-Client']: 'gl-js/ fire/' + SDK_VERSION

scripts/emulator-testing/emulators/dataconnect-emulator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import { platform } from 'os';
1919
import { Emulator } from './emulator';
2020

21-
const DATABASE_EMULATOR_VERSION = '1.1.17';
21+
const DATABASE_EMULATOR_VERSION = '1.3.5';
2222

2323
export class DataConnectEmulator extends Emulator {
2424
// namespace: string;

0 commit comments

Comments
 (0)