[Pkg-javascript-devel] help with node-vue-style-loader autopkgtest and jest
Pirate Praveen
praveen at onenetbeyond.org
Sat Dec 12 20:00:24 GMT 2020
Hi,
The tests are running fine for node-vue-style-loader during build but
it fails during autopkgtest because the module is shipping esm files
directly.
It has a .babelrc file which jest uses during build to transform the
modules, but during autopkgtest, lib is a symlink to
/usr/share/nodejs/vue-style-loader/lib so it refuses to transform and
fails because it is ES Module (import statement).
I tried adding export BABEL_ENV=commonjs (which worked in some other
package) and adding a jest.config.js with different values for
"transformIgnorePatterns":, including empty [],
"node_modules/(?!(vue-style-loader)/)",
"nodejs/(?!(vue-style-loader)/)", /(?!(vue-style-loader)/ etc.
Can anyone try it? You just need to add Testsuite:
autopkgtes-pkg-nodejs to debian/control and run autopkgtest. Files are
in salsa.
Note: I tried jest --ci, and jest --ci test as well.
Thanks
Praveen
More information about the Pkg-javascript-devel
mailing list