Open andybalaam opened 1 year ago
I'm having problems with this too and haven't had the time to figure out what magic cargo settings I need to get this to work.
Wouldn't it make sense to just expose regardless of if you're testing or not? The compiler should just remove this dead code from the executable on build anyway (if you don't import it certainly won't be included).
Problem
I am unable to use the
yew::tests
module in my tests. Sorry if I'm being stupid, but I think it's because thecfg(test)
does not get passed on to crates you depend on.Steps To Reproduce Steps to reproduce the behavior:
Expected behavior
Because of the information here: https://yew.rs/docs/more/testing I expected to be able to use this module.
Environment:
Questionnaire