Closed stockiNail closed 2 years ago
What cannot do is to register the plugin globally (try in several ways without any success) therefore in this PR the plugin has been adding in the first test case.
I had a look to chartjs-plugin-datalabels
which, like this plugin, doesn't have the auto registration. Nevertheless I wasn't able to enable it globally. :(
Oh, how nice! Than you!
What cannot do is to register the plugin globally (try in several ways without any success) therefore in this PR the plugin has been adding in the first test case.
I had a look to
chartjs-plugin-datalabels
which, like this plugin, doesn't have the auto registration. Nevertheless I wasn't able to enable it globally. :(
Did you try adding a beforeAll
handler in test/index.js?
Oh, how nice! Than you!
ur welcome! I wanted to understand how it works ;)
Did you try adding a
beforeAll
handler in test/index.js?
No... only in beforeEach. Let me try
Did you try adding a
beforeAll
handler in test/index.js?
And as usual you are right! ;) Fixed!
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@kurkle I'm going to add some test cases because I'll have a couple of PR and I want to make sure do not destroy anything!
@kurkle I'm going to add some test cases because I'll have a couple of PR and I want to make sure do not destroy anything!
I tweaked the CI to do coverage analysis on sonar cloud too (and removed windows runner, because I don't know how to do coverage on multiple osses and its slow etc)
So, the quality gate is failing currently because test coverage is too low.. looking forward on your new test cases to fix that! :)
I'm doing... I have added chartjs-adapter-luxon and luxon as dependencies in order to test also the time axis
This PR is adding test suite in order to enable the tests.
The source was
chartjs-plugin-annotation
and maybe something is not "perfect".What cannot do is to register the plugin globally (try in several ways without any success) therefore in this PR the plugin has been adding in the first test case.
EDIT: the global registration was fixed putting it in
beforeAll
hook. Thanks @kurkle