Skip to content

Commit e5cfae1

Browse files
script
1 parent d05a624 commit e5cfae1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/tests/component.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
cd "$(git rev-parse --show-toplevel)"
6+
7+
# run tests
8+
cd tests
9+
TEST_EXIT_CODE=0
10+
npm ci
11+
npm run test:component || TEST_EXIT_CODE=$?
12+
echo "TEST_EXIT_CODE=$TEST_EXIT_CODE"
13+
exit $TEST_EXIT_CODE

0 commit comments

Comments
 (0)