We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Error: [vitest-worker]: Timeout calling "onTaskUpdate"
1 parent e908710 commit 391aebdCopy full SHA for 391aebd
tests/cli.test.js
@@ -87,6 +87,12 @@ describe('CLI', () => {
87
});
88
89
describe('Lossless (--lossless)', () => {
90
+ afterEach(async () => {
91
+ // Fix for `Error: [vitest-worker]: Timeout calling "onTaskUpdate"`
92
+ // https://github.com/vitest-dev/vitest/issues/4497#issuecomment-1887757764
93
+ await new Promise(resolve => setImmediate(resolve)); // eslint-disable-line no-promise-executor-return
94
+ });
95
+
96
test('JPEG/JPG should be optimized', () => {
97
const file = 'jpeg-not-optimized.jpeg';
98
const stdout = runCliWithParameters(`--lossless ${workDirectory}${file}`);
0 commit comments