-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathTiltfile.tests
More file actions
17 lines (14 loc) · 905 Bytes
/
Tiltfile.tests
File metadata and controls
17 lines (14 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- mode: Python -*-
# For more on the `test_jest_yarn` extension:
# https://github.com/tilt-dev/tilt-extensions/tree/master/tests/javascript
# For more on tests in Tilt: https://docs.tilt.dev/tests_in_tilt.html
load('ext://tests/javascript', 'test_jest_yarn')
# Jest is smart about what tests it runs (by default, only runs tests related to files
# that have changed since your last commit), so it won't be too expensive to run this
# on every file change
# Make sure you have "scripts.test" configured in "package.json"
# (this is done automatically for you in some frameworks, e.g. React)
test_jest_yarn('unit-tests', '.',
with_install=True, # make sure all dependencies are present locally so you can run tests
# in CI mode, run ALL tests (not just those related to files changed since last commit)
only_changed=config.tilt_subcommand != 'ci')