summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test-js.yml4
-rw-r--r--jest.config.js2
2 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/test-js.yml b/.github/workflows/test-js.yml
index 6a1cacb3f09..1c4958550e5 100644
--- a/.github/workflows/test-js.yml
+++ b/.github/workflows/test-js.yml
@@ -9,6 +9,8 @@ on:
- '.nvmrc'
- '**/*.js'
- '**/*.jsx'
+ - '**/*.ts'
+ - '**/*.tsx'
- '**/*.snap'
- '.github/workflows/test-js.yml'
@@ -19,6 +21,8 @@ on:
- '.nvmrc'
- '**/*.js'
- '**/*.jsx'
+ - '**/*.ts'
+ - '**/*.tsx'
- '**/*.snap'
- '.github/workflows/test-js.yml'
diff --git a/jest.config.js b/jest.config.js
index 69222ea357d..f447cf285d4 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -12,7 +12,7 @@ const config = {
setupFiles: ['raf/polyfill'],
setupFilesAfterEnv: ['<rootDir>/app/javascript/mastodon/test_setup.js'],
collectCoverageFrom: [
- 'app/javascript/mastodon/**/*.js',
+ 'app/javascript/mastodon/**/*.{js,jsx,ts,tsx}',
'!app/javascript/mastodon/features/emoji/emoji_compressed.js',
'!app/javascript/mastodon/locales/locale-data/*.js',
'!app/javascript/mastodon/service_worker/entry.js',