File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -127,10 +127,11 @@ jobs:
127
127
name : Run e2e tests
128
128
command : |
129
129
cd tests/e2e/dist
130
+ # Include setup.js as the first test file
130
131
export SETUP_TEST="tests/setup.js"
131
132
export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.js" | circleci tests split --split-by=timings)
132
- # Combine setup test and other tests into an array
133
- export COMBINED_TEST_FILES=$(echo -e "$SETUP_TEST\n$TEST_FILES" | tr '\n' ' ')
133
+ # Combine setup test and other tests, filter out any non-js files or directories
134
+ export COMBINED_TEST_FILES=$(echo -e "$SETUP_TEST\n$TEST_FILES" | grep -E '\.js$ ')
134
135
echo "Running tests: $COMBINED_TEST_FILES"
135
136
cd ../../..
136
137
TEST_FILES="$COMBINED_TEST_FILES" .circleci/e2e/test.app.sh
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ module.exports = {
4
4
color : true ,
5
5
delay : false ,
6
6
diff : true ,
7
- file : [ './tests/setup.js' ] ,
8
7
package : './package.json' ,
9
8
parallel : false ,
10
9
recursive : false ,
You can’t perform that action at this time.
0 commit comments