Skip to content

Commit

Permalink
switch to using prod for tests (#39)
Browse files Browse the repository at this point in the history
* switch to using prod for tests

* update vscode test version
  • Loading branch information
fauna-chase authored Feb 5, 2024
1 parent 0b59d71 commit cb4569b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/vscode": "^1.72.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vscode/test-electron": "^2.1.5",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.24.0",
"eslint-plugin-prettier": "^5.0.0",
"glob": "^10.3.3",
Expand Down Expand Up @@ -169,4 +169,4 @@
}
]
}
}
}
8 changes: 4 additions & 4 deletions src/test/suite/helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Client } from "../../client";
import * as vscode from "vscode";
import { Client } from "../../client";

export async function activateFQLExtension() {
const ext = vscode.extensions.getExtension("fauna.fauna-vscode");
Expand All @@ -20,7 +20,7 @@ export async function sleep(ms: number) {

export function getClient(): Client {
if (process.env.VSCODE_DB_SECRET) {
return getDevDB(process.env.VSCODE_DB_SECRET);
return getDB(process.env.VSCODE_DB_SECRET);
} else {
return getLocalClient();
}
Expand All @@ -33,9 +33,9 @@ export function getLocalClient(): Client {
});
}

export function getDevDB(secret: string): Client {
export function getDB(secret: string): Client {
return new Client({
endpoint: new URL("https://db.dev.faunadb.net"),
endpoint: new URL("https://db.fauna.com"),
secret: secret,
});
}
Expand Down
19 changes: 13 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@
"@typescript-eslint/types" "6.0.0"
eslint-visitor-keys "^3.4.1"

"@vscode/test-electron@^2.1.5":
version "2.3.3"
resolved "https://registry.yarnpkg.com/@vscode/test-electron/-/test-electron-2.3.3.tgz#e648700d5848eccfda99efa5d839356cfbe8cd4e"
integrity sha512-hgXCkDP0ibboF1K6seqQYyHAzCURgTwHS/6QU7slhwznDLwsRwg9bhfw1CZdyUEw8vvCmlrKWnd7BlQnI0BC4w==
"@vscode/test-electron@^2.3.9":
version "2.3.9"
resolved "https://registry.yarnpkg.com/@vscode/test-electron/-/test-electron-2.3.9.tgz#f61181392634b408411e4302aef6e1cd2dd41474"
integrity sha512-z3eiChaCQXMqBnk2aHHSEkobmC2VRalFQN0ApOAtydL172zXGxTwGrRtviT5HnUB+Q+G3vtEYFtuQkYqBzYgMA==
dependencies:
http-proxy-agent "^4.0.1"
https-proxy-agent "^5.0.0"
jszip "^3.10.1"
semver "^7.3.8"
semver "^7.5.2"

acorn-jsx@^5.3.2:
version "5.3.2"
Expand Down Expand Up @@ -1483,13 +1483,20 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1:
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==

semver@^7.3.7, semver@^7.3.8, semver@^7.5.0:
semver@^7.3.7, semver@^7.5.0:
version "7.5.4"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
dependencies:
lru-cache "^6.0.0"

semver@^7.5.2:
version "7.6.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d"
integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==
dependencies:
lru-cache "^6.0.0"

[email protected]:
version "6.0.0"
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8"
Expand Down

0 comments on commit cb4569b

Please sign in to comment.