nuxt-community / module-template

Starter template for Nuxt.js Modules
MIT License
127 stars 34 forks source link

[template] test using src #59

Closed pi0 closed 4 years ago

pi0 commented 4 years ago

We need to setup jest config to be able to test directly from src

pi0 commented 4 years ago

/cc @danielroe @ricardogobbosouza

danielroe commented 4 years ago

Would we always want to test against src? I can imagine it would be useful to test against built files on prerelease

pi0 commented 4 years ago

@danielroe agree just we may lose coverage unless generating source maps and also making local tests harder.

(new feature idea) Maybe we can develop a custom utility to verify npm packaging? (proper files included and entrypoint require is fine on CJS env)