#Hello everyone, I can't install my modules in tests, I receive a error
1 messages · Page 1 of 1 (latest)
hey Lucas! WDYM by "installing my modules in tests"? not sure I follow
I'm follow the docs to create tests https://docs.dagger.io/reference/best-practices/modules/, when i call de command "dagger install ..", i receive this error
are you calling dagger install inside the tests folder?
Yes
Can be a error in my gen code, but my gen code is correct, dagger check, dagger call and dagger develop pass anytime
that's strange.. creating the tests module is pretty much the same as creating any regular dagger module. Just tried this and it works without problems:
mkdir someproject
cd someproject
git init # dagger needs a git context to have a scope
dagger init --sdk typescript --source .dagger #creates main project
mkdir tests && cd tests
dagger init --sdk typescript #create the test project
dagger install .. #installing the main "someproject" module to test it
I found the problem, the pod generate a var with name type