gemini-testing / gemini-testing/looks-same

TypeError: A dynamic import callback was invoked without --experimental-vm-modules

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
827
Forks
55
PR merge metrics
No merged PRs in 30d

Description

When running the new version 10.x in test running jest 30.x, I am getting this error

`TypeError: A dynamic import callback was invoked without --experimental-vm-modules`

It is pretty simple test:

```
import looksSame from 'looks-same';

describe("imageComp", ()=> {
it('should return true for identical images', async () => {
const path1 = '__test_images__/original_image.png';
const path2 = '__test_images__/same_image.png';
const { equal, diffImage, differentPixels } = await looksSame(path1, path2, {
createDiffImage: true,
});
expect(equal).toBe(true);
}});
```

Any way to avoid this flag? Enabling it breaks my other tests so I would like to avoid that

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.