Open thplat opened 3 years ago
@thplat can you show the console of document.body.innerHTML
before expect
call?
the same problem, here is the screen, you can see that the head is empty
<html>
<head />
<body>
<div>
<button
class="button"
>
text
</button>
</div>
</body>
</html>
Contents of the config file:
import path from 'path';
module.exports = {
injectIntoDOM: true,
prepend: [path.resolve(process.cwd(), 'src/core/sass')]
};
I have created the
jest-css-modules-transform-config.js
in the root of my package, however it does not seem to be honored.Contents of the config file:
Example Test:
The computed styles are empty and the css does not seem to be injected into the DOM. Am I doing something wrong here? I also tried to manually set the path via the
JEST_CSS_MODULES_TRANSFORM_CONFIG
env variable but it seems to have no effect either.