0
I own a project that was started with vuetify webpack (Vue init vuetifyjs/webpack). At the time the project was created, the e2e/unit test option was not selected. However, there is now a need to perform the tests.
I checked the manual installation of Nightwatch first, and installed all the necessary dependencies via npm, for example:
npm install --save-dev webpack-dev-server
npm i -D babel-register chromedriver cross-spawn nightwatch selenium-server
Insert in script too, so it can be executed:
"e2e": "node test/e2e/runner.js",
"test": "npm run unit && npm run e2e"`
However, errors occur through the file webpack.dev.conf.js
. It turns out that devConfigPromise.then(devConfig => { TypeError: devConfigPromise.then is not a function
, and really it is not, because to check created another project today from scratch and the file webpack.dev.conf.js
is extremely different from mine, as well as he owns the export of a Promise
, among other new dependencies, which is necessary to resolve this error of devConfigPromise
use the .then
.
I would like to know if anyone has ever been in a situation like this, and knows of any relatively easy solution to this case, because I tried to "integrate" the webpack.dev.conf.js
of the new project in my old, but there are several problems, and I have reached a point that I no longer know how to solve.
I tried to look, but I haven’t found anything about it so far, which in my view is strange, because otherwise it ends up like this: Either you start the project with tests, or you create another.
If it helps, I can post the code of the configuration files, in the case of this project there are three for development, the webpack.dev.conf.js
, the dev-client.js
and the dev-server.js
.