Skip to content

Commit 3b3901b

Browse files
committed
test hooks
1 parent 72ba458 commit 3b3901b

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

scripts/tests/lint.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
cd "$(git rev-parse --show-toplevel)"
6+
7+
# This file is for you! Edit it to call your unit test suite. Note that the same
8+
# file will be called if you run it locally as if you run it on CI.
9+
10+
# Replace the following line with something like:
11+
#
12+
# rails test:unit
13+
# python manage.py test
14+
# npm run test
15+
#
16+
# or whatever is appropriate to your project. You should *only* run your fast
17+
# tests from here. If you want to run other test suites, see the predefined
18+
# tasks in scripts/test.mk.
19+
20+
# run tests
21+
npm ci
22+
npm run lint --workspaces

scripts/tests/typecheck.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
cd "$(git rev-parse --show-toplevel)"
6+
7+
# This file is for you! Edit it to call your unit test suite. Note that the same
8+
# file will be called if you run it locally as if you run it on CI.
9+
10+
# Replace the following line with something like:
11+
#
12+
# rails test:unit
13+
# python manage.py test
14+
# npm run test
15+
#
16+
# or whatever is appropriate to your project. You should *only* run your fast
17+
# tests from here. If you want to run other test suites, see the predefined
18+
# tasks in scripts/test.mk.
19+
20+
# run tests
21+
npm ci
22+
npm run typecheck --workspaces

0 commit comments

Comments
 (0)