#[SOLVED] How to run test suite of an integration

5 messages · Page 1 of 1 (latest)

icy valley
#

I want to contribute to the image integration. But I am not able to run the test suite.
I used
pnpm install
and
pnpm run test

For the image integration I get the error:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\bauma\source\astro\packages\astro\node_modules\@astrojs\webapi\mod.js' imported from C:\Users\bauma\source\astro\packages\astro\test\test-utils.js
But I also cannot run the tests for other integration like prefetch.

Probably I am only missing something. Is there any doc on the astro repository itself?

noble drum
#

Did you build?

icy valley
#

Ah ok that makes sense. I am used to ts-jest so I forgot the build step before the test

#

I will try. Thanks @noble drum

#

Ok I see... I first need to build the complete repo and then I can run the tests. Thanks 🙈