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
does not work as everything is Stringified, and ${} flat the '' in windows. so when code gets evaluated it fails.
To double check, i debugged with following paths:
// works
// const postcssRunner = 'D:\\\\git\\\\package-deploy-learn\\\\node_modules\\\\jest-transform-css\\\\postcss-runner.js';
//const postcssRunner = 'D:/git/package-deploy-learn/node_modules/jest-transform-css/postcss-runner.js';
// does not work
const postcssRunner = `${__dirname}/postcss-runner.js`;
//const postcssRunner = p.normalize(`${__dirname}/postcss-runner.js`);
//const postcssRunner = 'D:\\git\\package-deploy-learn\\node_modules\\jest-transform-css\\postcss-runner.js';
//const postcssRunner = 'D:\\git\\package-deploy-learn\\node_modules\\jest-transform-css/postcss-runner.js';
\\\\ gets translate to \\ in require("${postcssRunner}") and path works.
I tested above Repository in Ubuntu VM, there was no issue, and npm run test works fine.
Any insights?
The text was updated successfully, but these errors were encountered:
Sample Code:
https://github.com/VikasAgarwal1984/package-deploy-learn/tree/0.0.1
Issue:
Transform not working
Jest config file path
https://github.com/VikasAgarwal1984/package-deploy-learn/blob/0.0.1/jest.config.js
To understand what is failing, i updated the index file in node_modules to the content copied in below link:
https://github.com/VikasAgarwal1984/package-deploy-learn/blob/0.0.1/dev/index.js
I think the issue is
require("${postcssRunner}")(
does not work as everything is Stringified, and ${} flat the '' in windows. so when code gets evaluated it fails.
To double check, i debugged with following paths:
I tested above Repository in Ubuntu VM, there was no issue, and npm run test works fine.
Any insights?
The text was updated successfully, but these errors were encountered: