-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix #285] - Add namespace to compile #295
[fix #285] - Add namespace to compile #295
Conversation
be4b503
to
e30b121
Compare
Codecov Report
@@ Coverage Diff @@
## master #295 +/- ##
==========================================
+ Coverage 91.58% 91.66% +0.08%
==========================================
Files 42 42
Lines 1069 1080 +11
==========================================
+ Hits 979 990 +11
Misses 90 90
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really good! Unit tests might be as simple as snapshot testing. Feel free to test just createCompiledCatalog
and the simplest message catalog only. Something like:
const actual = createCompiledCatalog("en", {}, false, "cjs")
expect(actual).toMatchSnapshot()
d0e63b8
to
b417ccf
Compare
…ow user to specify the namespace of compiled js file: ex: export default or module.export or window.translations
b417ccf
to
bdeaf1c
Compare
running test with IDE
bdeaf1c
to
c469281
Compare
Closes #285