This repository was archived by the owner on Dec 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +163
-188
lines changed
Expand file tree Collapse file tree 4 files changed +163
-188
lines changed Original file line number Diff line number Diff line change 11# These are supported funding model platforms
22
33github : kazupon
4- patreon : kazupon
4+ patreon : #
55open_collective : # Replace with a single Open Collective username
66ko_fi : # Replace with a single Ko-fi username
77tidelift : # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88community_bridge : # Replace with a single Community Bridge project-name e.g., cloud-foundry
99liberapay : # Replace with a single Liberapay username
1010issuehunt : # Replace with a single IssueHunt username
1111otechie : # Replace with a single Otechie username
12- custom : # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
12+ custom : # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Original file line number Diff line number Diff line change 44[ ![ npm] ( https://img.shields.io/npm/v/vue-i18n-jest.svg )] ( https://www.npmjs.com/package/vue-i18n-jest )
55[ ![ codecov] ( https://codecov.io/gh/kazupon/vue-i18n-jest/branch/master/graph/badge.svg )] ( https://codecov.io/gh/kazupon/vue-i18n-jest )
66
7- vue-jest wrapper for i18n custom blocks
7+ vue-jest transformer for i18n custom blocks
8+
9+ > :warning : NOTE: This transformer is for ` vue-jest@v4 `
810
911## :cd : Installation
1012
@@ -26,15 +28,15 @@ To define vue-i18n-jest as a transformer for your .vue files that have i18n cust
2628
2729if you've already setup vue-jest, You can change it as follows:
2830
29- ``` diff
30- {
31- "jest" : {
32- // ...
33- " transform" : {
34- - "^.+\\.vue$": " vue-jest"
35- + "^.+\\.vue$": "vue-i18n-jest"
36- },
37- // ....
31+ ``` js
32+ module . exports = {
33+ globals : {
34+ ' vue-jest ' : {
35+ transform: {
36+ ' i18n ' : require ( ' vue-i18n- jest' )
37+ }
38+ }
39+ }
3840}
3941```
4042
Original file line number Diff line number Diff line change 4343 "jest" : " ^24.0.0" ,
4444 "lerna-changelog" : " ^1.0.1" ,
4545 "opener" : " ^1.5.1" ,
46- "shipjs" : " ^0.18.4 " ,
46+ "shipjs" : " ^0.23.0 " ,
4747 "ts-jest" : " ^24.0.0" ,
4848 "typescript" : " ^3.8.3" ,
4949 "vue" : " ^2.5" ,
5050 "vue-template-compiler" : " ^2.5"
5151 },
5252 "engines" : {
53- "node" : " >= 8 "
53+ "node" : " >= 10 "
5454 },
5555 "files" : [" lib" ],
5656 "homepage" : " https://github.com/kazupon/vue-i18n-jest#readme" ,
You can’t perform that action at this time.
0 commit comments