File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,26 @@ local config = {
101
101
" end" ,
102
102
},
103
103
},
104
+ [" lib/**/live/*_component.ex" ] = {
105
+ type = " livecomponent" ,
106
+ alternate = " test/{dirname}/live/{basename}_component_test.exs" ,
107
+ template = {
108
+ " defmodule {dirname|camelcase|capitalize}.{basename|camelcase|capitalize}Component do" ,
109
+ " use {dirname|camelcase|capitalize}, :live_component" ,
110
+ " end" ,
111
+ },
112
+ },
113
+ [" test/**/live/*_component_test.exs" ] = {
114
+ type = " test" ,
115
+ alternate = " lib/{dirname}/live/{basename}_component.ex" ,
116
+ template = {
117
+ " defmodule {dirname|camelcase|capitalize}.{basename|camelcase|capitalize}ComponentTest do" ,
118
+ " use {dirname|camelcase|capitalize}.ConnCase" ,
119
+ " " ,
120
+ " import Phoenix.LiveViewTest" ,
121
+ " end" ,
122
+ },
123
+ },
104
124
[" lib/**/live/*_live.ex" ] = {
105
125
type = " liveview" ,
106
126
alternate = " test/{dirname}/live/{basename}_live_test.exs" ,
You can’t perform that action at this time.
0 commit comments