Skip to content

Commit c1b59d9

Browse files
committed
fix 19
1 parent f6b1ef0 commit c1b59d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ jobs:
127127
name: Run e2e tests
128128
command: |
129129
cd tests/e2e/dist
130+
# Include setup.js as the first test file
130131
export SETUP_TEST="tests/setup.js"
131132
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$')
134135
echo "Running tests: $COMBINED_TEST_FILES"
135136
cd ../../..
136137
TEST_FILES="$COMBINED_TEST_FILES" .circleci/e2e/test.app.sh

tests/e2e/.mocharc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module.exports = {
44
color: true,
55
delay: false,
66
diff: true,
7-
file: ['./tests/setup.js'],
87
package: './package.json',
98
parallel: false,
109
recursive: false,

0 commit comments

Comments
 (0)