Writing Junit for vuejs including dhtmlx library

Hello
I am writing Junit for classes including dhtmlx lib but its gives the error as:

RUNTIME EXCEPTION Exception occurred while loading your tests

ReferenceError: dhtmlx is not defined
at t.exports (webpack-internal:///26:9:73956

Please suggest is there any webpck config entry for including dhtmlx js and css.

Thanks in advance
Manisha

Hello Manisha,
It is hard to suggest what might be wrong as I don’t see your code.
You can try adding something like this:

externals: {
  "gantt": "gantt"
}
resolve: {
  alias: {
    'gantt': path.join(__dirname, '/path/to/gantt/library/dhtmlx_gantt.js')
  }
},
plugins: [ new webpack.ProvidePlugin({
  gantt: 'gantt',
})

Also, you can download and run the official demo and check if you did something wrong in your configuration:

Thanks Ramilm!!
But the problem is still not resolved

Hello Manisha,
Thank you for the clarification.

Unfortunately, I don’t specialize in vue.js and Junit so I cannot tell you where you should put a string to load Gantt. You can send me your demo project or any temporary project where I can reproduce the issue. Also, please give me the steps to reproduce the issue.
I will try to find where I need to put Gantt files.