1.1.2 • Published 8 months ago
jest-preset-kyt-rtl v1.1.2
jest-preset-kyt-rtl
Jest preset for React projects that use @testing-library/react to test.
Installation
$ yarn add --dev --exact jest @testing-library/react jest-preset-kyt-rtl
// or
$ npm i --save-dev --save-exact jest @testing-library/react jest-preset-kyt-rtlSetup
In your local Jest config - for instance, jest.config.js:
{
preset: 'jest-preset-kyt-rtl'
}Features:
- Installs and configures
raf/polyfill, which is required by React >= 16. - Automatic
moduleNameMapperentries/file-stubbing for files with these extensions:css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico|md Sets
cacheDirectoryto<rootDir>/.caches/jest, which allows you to build/restore Jest transforms in between CI/CD pipeline runs. Example: usingdrone/gcs-cache:steps: - name: restore_cache image: homerovalle/drone-gcs-cache:latest settings: bucket: your-custom-name restore: true environment: GCS_CACHE_JSON_KEY: from_secret: a_secret_set_by_you - name: test image: node:12.16.2 commands: - yarn test-coverage-ci - name: rebuild_cache image: homerovalle/drone-gcs-cache:latest settings: bucket: your-custom-name mount: - .caches - coverage rebuild: true environment: GCS_CACHE_JSON_KEY: from_secret: a_secret_set_by_you
1.1.3-next1.27
9 months ago
1.1.3-next1.29
9 months ago
1.1.3-next1.28
9 months ago
1.1.3-zeta.29
10 months ago
1.1.3-next1.30
9 months ago
1.1.3-next1.32
9 months ago
1.1.3-next1.31
9 months ago
1.1.3-next1.34
8 months ago
1.1.3-next1.35
8 months ago
1.1.3-alpha.26
10 months ago
1.1.3-beta.28
10 months ago
1.1.3-omega.30
10 months ago
1.1.3-alpha.25
1 year ago
1.1.3-alpha.41
1 year ago
1.1.3-alpha.40
1 year ago
1.1.3-alpha.27
1 year ago
1.1.3-alpha.32
2 years ago
1.1.3-alpha.31
2 years ago
1.1.3-alpha.28
2 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago