mirror of https://github.com/coder/code-server.git
wip: refactor vscode integration tests
This commit is contained in:
parent
64d234e084
commit
13286bf4c9
|
@ -32,6 +32,26 @@ main() {
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# TODO@jsjoeio get this working like in test-unit.sh
|
||||||
|
# ln -s "/usr/local/Cellar/code-server/4.7.0/libexec/lib/vscode/out" ./lib/vscode/out
|
||||||
|
# source ./ci/lib.sh
|
||||||
|
|
||||||
|
# Our code imports from `out` in order to work during development but if you
|
||||||
|
# have only built for production you will have not have this directory. In
|
||||||
|
# that case symlink `out` to a production build directory.
|
||||||
|
# if [[ ! -e lib/vscode/out ]]; then
|
||||||
|
# pushd lib
|
||||||
|
# local out=(vscode-reh-web-*)
|
||||||
|
# if [[ -d "${out[0]}" ]]; then
|
||||||
|
# ln -s "../${out[0]}/out" ./vscode/out
|
||||||
|
# else
|
||||||
|
# echo "Could not find lib/vscode/out or lib/vscode-reh-web-*"
|
||||||
|
# echo "Code must be built before running unit tests"
|
||||||
|
# # exit 1
|
||||||
|
# fi
|
||||||
|
# popd
|
||||||
|
# fi
|
||||||
|
|
||||||
echo "Running tests with code-server binary: '$path'"
|
echo "Running tests with code-server binary: '$path'"
|
||||||
|
|
||||||
if [[ ! -f $path ]]; then
|
if [[ ! -f $path ]]; then
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
import { promises as fs } from "fs"
|
import { promises as fs } from "fs"
|
||||||
import * as path from "path"
|
import * as path from "path"
|
||||||
import { clean, tmpdir } from "../../../utils/helpers"
|
import { clean, tmpdir } from "../utils/helpers"
|
||||||
import * as httpserver from "../../../utils/httpserver"
|
import * as httpserver from "../utils/httpserver"
|
||||||
import * as integration from "../../../utils/integration"
|
import * as integration from "../utils/integration"
|
||||||
|
|
||||||
// TODO@jsjoeio - move these to integration tests since they rely on Code
|
// TODO@jsjoeio - remove skip when script fixed
|
||||||
// to be built
|
|
||||||
describe.skip("vscode", () => {
|
describe.skip("vscode", () => {
|
||||||
let codeServer: httpserver.HttpServer | undefined
|
let codeServer: httpserver.HttpServer | undefined
|
||||||
|
|
Loading…
Reference in New Issue