refactor: move test-plugin to integration suite
This seems more appropriate given this tests how a plugin might work within code-server.
This commit is contained in:
@ -24,6 +24,13 @@ main() {
|
||||
path="$CODE_SERVER_PATH"
|
||||
fi
|
||||
|
||||
# TODO@jsjoeio - skip if already built
|
||||
# TODO@jsjoeio - move to integration test suite too
|
||||
echo "Building test plugin"
|
||||
pushd test/integration/test-plugin
|
||||
make -s out/index.js
|
||||
popd
|
||||
|
||||
echo "Running tests with code-server binary: '$path'"
|
||||
|
||||
if [[ ! -f $path ]]; then
|
||||
@ -33,7 +40,7 @@ main() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CODE_SERVER_PATH="$path" CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@" --coverage=false --testRegex "./test/integration" --testPathIgnorePatterns "./test/integration/fixtures"
|
||||
CODE_SERVER_PATH="$path" CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@" --coverage=false --testRegex "./test/integration" --testPathIgnorePatterns "./test/integration/fixtures" --testPathIgnorePatterns "./test/integration/test-plugin"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
@ -6,13 +6,6 @@ main() {
|
||||
|
||||
source ./ci/lib.sh
|
||||
|
||||
# TODO@jsjoeio - skip if already built
|
||||
# TODO@jsjoeio - move to integration test suite too
|
||||
echo "Building test plugin"
|
||||
pushd test/unit/node/test-plugin
|
||||
make -s out/index.js
|
||||
popd
|
||||
|
||||
# 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.
|
||||
|
Reference in New Issue
Block a user