You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to run the tests but they fail with the following errors:
` FAIL specs/query_ctrl_specs.ts
● Test suite failed to run
Cannot find module 'app/plugins/sdk' from 'query_ctrl.ts'
However, Jest was able to find:
'../src/query_ctrl.ts'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['ts', 'js', 'json', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (src/query_ctrl.ts:10388:25)
FAIL specs/datasource_specs.ts
● Test suite failed to run
Cannot find module 'app/core/utils/datemath' from 'datasource.ts'
However, Jest was able to find:
'../src/datasource.d.ts'
'../src/datasource.ts'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['ts', 'js', 'json', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (src/datasource.ts:7553:39)`
I have tried with Karma too, but even that fails. The mocks for these are in "grafana-sdk-mocks" which I am including in the ref header. I think this is some sort of configuration issue. Could someone please help with this?
Thanks.
The text was updated successfully, but these errors were encountered:
Hello,
I have been trying to run the tests but they fail with the following errors:
` FAIL specs/query_ctrl_specs.ts
● Test suite failed to run
FAIL specs/datasource_specs.ts
● Test suite failed to run
I have tried with Karma too, but even that fails. The mocks for these are in "grafana-sdk-mocks" which I am including in the ref header. I think this is some sort of configuration issue. Could someone please help with this?
Thanks.
The text was updated successfully, but these errors were encountered: