Skip to content

Commit 1d687fa

Browse files
Fix Node.js test file
1 parent 8c6393c commit 1d687fa

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

test/node/test.sh

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,14 @@
11
#!/usr/bin/env bash
22

3-
# This test file will be executed against an auto-generated devcontainer.json that
4-
# includes the 'node' Feature with no options.
5-
#
6-
# For more information, see: https://github.com/devcontainers/cli/blob/main/docs/features/test.md
7-
#
8-
# Eg:
9-
# {
10-
# "image": "<..some-base-image...>",
11-
# "features": {
12-
# "node": {}
13-
# },
14-
# "remoteUser": "root"
15-
# }
16-
#
17-
# Thus, the value of all options will fall back to the default value in the
18-
# Feature's 'devcontainer-feature.json'.
19-
#
20-
# These scripts are run as 'root' by default. Although that can be changed
21-
# with the '--remote-user' flag.
22-
#
23-
# This test can be run with the following command:
24-
#
25-
# devcontainer features test \
26-
# --features node \
27-
# --remote-user root \
28-
# --skip-scenarios \
29-
# --base-image mcr.microsoft.com/devcontainers/base:ubuntu \
30-
# /path/to/this/repo
31-
323
set -e
334

345
# Optional: Import test library bundled with the devcontainer CLI
35-
# See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib
36-
# Provides the 'check' and 'reportResults' commands.
6+
# shellcheck source=/dev/null
377
source dev-container-features-test-lib
388

399
# Feature-specific tests
40-
# The 'check' command comes from the dev-container-features-test-lib. Syntax is...
41-
# check <LABEL> <cmd> [args...]
4210
check "version" node --version
4311
check "which node" bash -c "which node | grep /usr/bin/node"
4412

4513
# Report result
46-
# If any of the checks above exited with a non-zero exit code, the test will fail.
4714
reportResults

0 commit comments

Comments
 (0)