You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try either of these way of testing the following endpoint, I get the subsequent errors. This makes testing raw endpoints more difficult as the only workaround is to extract the logic in another function, which is not documented.
The code
//encore:api public path=/index rawfuncIndex(w http.ResponseWriter, req*http.Request) {
w.WriteHeader(http.StatusOK)
}
When I try either of these way of testing the following endpoint, I get the subsequent errors. This makes testing raw endpoints more difficult as the only workaround is to extract the logic in another function, which is not documented.
The code
Using the function directly
Throws
/tmp/encore-test1833923309/hello/hello_test.go:20:2: undefined: EncoreInternal_CallIndex
.Using the
httptest
utilitiesThrows
hello/hello_test.go:20:30: cannot reference API endpoint hello.Index without calling it (and 1 more errors)
.Context: https://encoredev.slack.com/archives/C0356ERKBEH/p1665261460735409
The text was updated successfully, but these errors were encountered: