Update Jest testing to include Typescript (#24555)

lolsob-rspec
Nick Schonning 2023-04-17 04:12:04 -04:00 committed by GitHub
parent d7a0f21886
commit 63417ad34f
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,8 @@ on:
- '.nvmrc' - '.nvmrc'
- '**/*.js' - '**/*.js'
- '**/*.jsx' - '**/*.jsx'
- '**/*.ts'
- '**/*.tsx'
- '**/*.snap' - '**/*.snap'
- '.github/workflows/test-js.yml' - '.github/workflows/test-js.yml'
@ -19,6 +21,8 @@ on:
- '.nvmrc' - '.nvmrc'
- '**/*.js' - '**/*.js'
- '**/*.jsx' - '**/*.jsx'
- '**/*.ts'
- '**/*.tsx'
- '**/*.snap' - '**/*.snap'
- '.github/workflows/test-js.yml' - '.github/workflows/test-js.yml'

View File

@ -12,7 +12,7 @@ const config = {
setupFiles: ['raf/polyfill'], setupFiles: ['raf/polyfill'],
setupFilesAfterEnv: ['<rootDir>/app/javascript/mastodon/test_setup.js'], setupFilesAfterEnv: ['<rootDir>/app/javascript/mastodon/test_setup.js'],
collectCoverageFrom: [ collectCoverageFrom: [
'app/javascript/mastodon/**/*.js', 'app/javascript/mastodon/**/*.{js,jsx,ts,tsx}',
'!app/javascript/mastodon/features/emoji/emoji_compressed.js', '!app/javascript/mastodon/features/emoji/emoji_compressed.js',
'!app/javascript/mastodon/locales/locale-data/*.js', '!app/javascript/mastodon/locales/locale-data/*.js',
'!app/javascript/mastodon/service_worker/entry.js', '!app/javascript/mastodon/service_worker/entry.js',