Skip to content

Commit 76fe3b5

Browse files
committed
Update e2e test script to exclude multiple directories
- Modified the e2e test script to support an array of directories to exclude from testing. - Added "examples/webpack" to the exclusion list alongside "examples/vanilla". - Updated the conditional check to properly handle the exclusion of directories using an array syntax.
1 parent b29546b commit 76fe3b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/e2e-tests.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
22

3-
exclude_dirs="examples/vanilla"
3+
# array of directories to exclude
4+
exclude_dirs=("examples/vanilla" "examples/webpack")
45

56
for dir in examples/*; do
6-
if [ -d "$dir" ] && ! [[ $exclude_dirs =~ $dir ]]; then
7+
if [ -d "$dir" ] && [[ ! " ${exclude_dirs[@]} " =~ " ${dir} " ]]; then
78
echo "Running e2e tests in $dir"
89
(SERVER_DIR="$dir" npm run test)
910
fi

0 commit comments

Comments
 (0)