Skip to content

Commit cbf2d7e

Browse files
committed
Cleanup
1 parent 646b145 commit cbf2d7e

File tree

5 files changed

+3
-59
lines changed

5 files changed

+3
-59
lines changed

src/javascript-node/test-project/test-utils.sh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,33 +61,6 @@ checkOSPackages() {
6161
fi
6262
}
6363

64-
checkExtension() {
65-
# Happens asynchronusly, so keep retrying 10 times with an increasing delay
66-
EXTN_ID="$1"
67-
TIMEOUT_SECONDS="${2:-10}"
68-
RETRY_COUNT=0
69-
echo -e -n "\n🧪 Looking for extension $1 for maximum of ${TIMEOUT_SECONDS}s"
70-
until [ "${RETRY_COUNT}" -eq "${TIMEOUT_SECONDS}" ] || \
71-
[ ! -e $HOME/.vscode-server/extensions/${EXTN_ID}* ] || \
72-
[ ! -e $HOME/.vscode-server-insiders/extensions/${EXTN_ID}* ] || \
73-
[ ! -e $HOME/.vscode-test-server/extensions/${EXTN_ID}* ] || \
74-
[ ! -e $HOME/.vscode-remote/extensions/${EXTN_ID}* ]
75-
do
76-
sleep 1s
77-
(( RETRY_COUNT++ ))
78-
echo -n "."
79-
done
80-
81-
if [ ${RETRY_COUNT} -lt ${TIMEOUT_SECONDS} ]; then
82-
echo -e "\n✅ Passed!"
83-
return 0
84-
else
85-
echoStderr -e "\n❌ Extension $EXTN_ID not found."
86-
FAILED+=("$LABEL")
87-
return 1
88-
fi
89-
}
90-
9164
checkCommon()
9265
{
9366
PACKAGE_LIST="apt-utils \

src/javascript-node/test-project/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ source test-utils.sh node
66
# Run common tests
77
checkCommon
88

9-
# Definition specific tests
10-
checkExtension "dbaeumer.vscode-eslint"
9+
# Image specific tests
1110
check "node" node --version
1211
sudo rm -f yarn.lock
1312
check "yarn" yarn install

src/typescript-node/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You can decide how often you want updates by referencing a [semantic version](ht
3232

3333
However, we only do security patching on the latest [non-breaking, in support](https://github.com/microsoft/vscode-dev-containers/issues/532) versions of images (e.g. `0-1.16`). You may want to run `apt-get update && apt-get upgrade` in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.
3434

35-
Beyond TypeScript, Node.js, and `git`, this image / `Dockerfile` includes `eslint`, `zsh`, [Oh My Zsh!](https://ohmyz.sh/), a non-root `node` user with `sudo` access, and a set of common dependencies for development. Since `tslint` is [now fully deprecated](https://github.com/palantir/tslint/issues/4534), the definition includes `tslint-to-eslint-config` globally to help you migrate.
35+
Beyond TypeScript, Node.js, and `git`, this image / `Dockerfile` includes `eslint`, `zsh`, [Oh My Zsh!](https://ohmyz.sh/), a non-root `node` user with `sudo` access, and a set of common dependencies for development. Since `tslint` is [now fully deprecated](https://github.com/palantir/tslint/issues/4534), the image includes `tslint-to-eslint-config` globally to help you migrate.
3636

3737
Note that, while `eslint`and `typescript` are installed globally for convenance, [as of ESLint 6](https://eslint.org/docs/user-guide/migrating-to-6.0.0#-plugins-and-shareable-configs-are-no-longer-affected-by-eslints-location), you will need to install the following packages locally to lint TypeScript code: `@typescript-eslint/eslint-plugin`, `@typescript-eslint/parser`, `eslint`, `typescript`.
3838

src/typescript-node/test-project/test-utils.sh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,33 +61,6 @@ checkOSPackages() {
6161
fi
6262
}
6363

64-
checkExtension() {
65-
# Happens asynchronusly, so keep retrying 10 times with an increasing delay
66-
EXTN_ID="$1"
67-
TIMEOUT_SECONDS="${2:-10}"
68-
RETRY_COUNT=0
69-
echo -e -n "\n🧪 Looking for extension $1 for maximum of ${TIMEOUT_SECONDS}s"
70-
until [ "${RETRY_COUNT}" -eq "${TIMEOUT_SECONDS}" ] || \
71-
[ ! -e $HOME/.vscode-server/extensions/${EXTN_ID}* ] || \
72-
[ ! -e $HOME/.vscode-server-insiders/extensions/${EXTN_ID}* ] || \
73-
[ ! -e $HOME/.vscode-test-server/extensions/${EXTN_ID}* ] || \
74-
[ ! -e $HOME/.vscode-remote/extensions/${EXTN_ID}* ]
75-
do
76-
sleep 1s
77-
(( RETRY_COUNT++ ))
78-
echo -n "."
79-
done
80-
81-
if [ ${RETRY_COUNT} -lt ${TIMEOUT_SECONDS} ]; then
82-
echo -e "\n✅ Passed!"
83-
return 0
84-
else
85-
echoStderr -e "\n❌ Extension $EXTN_ID not found."
86-
FAILED+=("$LABEL")
87-
return 1
88-
fi
89-
}
90-
9164
checkCommon()
9265
{
9366
PACKAGE_LIST="apt-utils \

src/typescript-node/test-project/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ source test-utils.sh node
66
# Run common tests
77
checkCommon
88

9-
# Definition specific tests
10-
checkExtension "dbaeumer.vscode-eslint"
9+
# Image specific tests
1110
check "node" node --version
1211
sudo rm -f yarn.lock
1312
check "yarn" yarn install

0 commit comments

Comments
 (0)