When setting up unit tests (in my case, using Jasmine for JavaScript) should files with uninfected / in-carbon be checked src? Or should buildend-user files (miniature and charcoal) be tested?
In my grunt configuration:
jasmine: {
src: ['src/file.js']
}
against.
jasmine: {
src: ['build/file.min.js']
}
On the one hand, it’s nice to test files src, since it does not remove debuggers and is easier to check when necessary.
On the other hand, I can test the files srcas much as I want, but that’s not how the end users will work, as the files buildwill be cleaned and reduced.
source
share