Test runs frontend jest tests.
()
| 289 | |
| 290 | // Test runs frontend jest tests. |
| 291 | func (js Js) Test() error { |
| 292 | mg.Deps(js.Deps) |
| 293 | if mg.Verbose() { |
| 294 | fmt.Println("Running tests") |
| 295 | } |
| 296 | return js.runYarnCommand("jest", filepath.Join("pkg", "webui")) |
| 297 | } |
| 298 | |
| 299 | // Fmt formats all js files. |
| 300 | func (js Js) Fmt() error { |
nothing calls this directly
no test coverage detected