including unit tests #995
Replies: 2 comments 4 replies
-
Hey @MatsSundqvist, just to be clear: you're talking about unit tests in your application, and not for the Snowpack repo/codebase itself? We'll have to think about this a bit, I want to support your use case but I'd also consider this a breaking change, which just means it might be a bit before we're ready to release a v3.0 |
Beta Was this translation helpful? Give feedback.
-
yes that works. Do you have any ideas how to best incorporate front end unit tests in the build? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to be able to include unit tests written in typescript. I succeeded to set up the configuration so that files from 'test' is going into build/test. However all files named "*.test.ts" are excluded.
I found out that this is expected since it's in the default configuration. I tried to set a custom 'exclude' in the snowpack.config.json. But this didn't change anything.
I think that this behavior is due to deep merging the default configuration with my config. The default behavior of deep merge is to merge arrays. Maybe it could be better to replace arrays instead of merging them.
Beta Was this translation helpful? Give feedback.
All reactions