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
The CSS transformer errors out with ENOBUFS with the following CSS file contents:
@import 'tailwindcss/utilities';
We use tailwindcss 1.9.6 if that helps, my suspicion is that it's just a large CSS file or something.
The full error:
● Test suite failed to run [110/1363]
spawnSync node ENOBUFS
at processPostCss (node_modules/jest-preview/transforms/css.js:254:34)
at processCss (node_modules/jest-preview/transforms/css.js:114:16)
at Object.process$1 [as process] (node_modules/jest-preview/transforms/css.js:371:12)
at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:464:35)
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
I changed the erroring line to const result = child_process.spawnSync('node', [tempFileName], {maxBuffer: 10 * 1024 * 1024});, which works. The maxBuffer default is 1MB or something, and not sure what you want the actual value to be.
Expected behavior
No error to occur
The text was updated successfully, but these errors were encountered:
Describe the bug
Hello, me again.
The CSS transformer errors out with ENOBUFS with the following CSS file contents:
We use tailwindcss 1.9.6 if that helps, my suspicion is that it's just a large CSS file or something.
The full error:
Corresponds to https://github.com/nvh95/jest-preview/blob/main/src/transform.ts#L356
I changed the erroring line to
const result = child_process.spawnSync('node', [tempFileName], {maxBuffer: 10 * 1024 * 1024});
, which works. The maxBuffer default is 1MB or something, and not sure what you want the actual value to be.Expected behavior
No error to occur
The text was updated successfully, but these errors were encountered: