ag-grid-enterprise icon indicating copy to clipboard operation
ag-grid-enterprise copied to clipboard

Karma Jasmine not detecting the ag-grid-enterprise License

Open SWGeekPD opened this issue 6 years ago • 5 comments

I have valid Enterprise license that I am using in development. I am not getting any error/warning while compiling or running the application. But when I am running Jasmine Unit Test using Karma , I am getting error-

Error:- Your license for ag-Grid Enterprise is not valid - please contact [email protected] to obtain a valid license. *

What is this , just don't understand.

SWGeekPD avatar Jul 13 '18 11:07 SWGeekPD

Do we need to inject AG-Grid License into jasmine test cases also.

SWGeekPD avatar Jul 16 '18 04:07 SWGeekPD

We also have this problem, which spams the test log with annoying messages. We are not sure if it also causes any problems, eg not initialising the grid properly?

philly-vanilly avatar Jul 13 '19 06:07 philly-vanilly

Same problem here.

w0jcik avatar Jul 16 '19 12:07 w0jcik

any updates on that?

danbilokha avatar May 20 '20 14:05 danbilokha

I found a solution.

I'm setting the license on my test.ts file.

Somewhere place

const agGridLicense = 'YOUR LICENSE GOES HERE';
LicenseManager.setLicenseKey(agGridLicense);

no more license messages thrown to the test run.

rmjoia avatar Jan 13 '21 13:01 rmjoia