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



--
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to