paraswap-dex-lib icon indicating copy to clipboard operation
paraswap-dex-lib copied to clipboard

yarn test-integration not working

Open 0xHans1 opened this issue 2 years ago • 2 comments

Hi paraswap team,

working on swapline integration for paraswap. I tryed to run the first tests but (at least on windows) it seams that test script calls the wrong jest file

The script "script/dex-integration" calls require('../node_modules/jest-cli/build/cli').run(...) but on my node-modules their is no "cli" file within the jest-cli folder.

Can you check if the path is still valid?

0xHans1 avatar Jul 24 '23 08:07 0xHans1

Update: changing the path to require('../node_modules/jest-cli/build') resolves the issue. So maybe you can check on your site if its a version problem of jest

0xHans1 avatar Jul 24 '23 08:07 0xHans1

Ran into same issue, should probably update the require to:

require('jest-cli').run()

oxSaturn avatar Aug 31 '23 02:08 oxSaturn