# Jest/Puppeteer Test Suite failing to run on example

**URL:** <https://forum.canton.network/t/jest-puppeteer-test-suite-failing-to-run-on-example/4864>\
**Category:** App Development\
**Created:** [July 7, 2022, 7:20pm UTC](https://forum.canton.network/t/jest-puppeteer-test-suite-failing-to-run-on-example/4864 "2022-07-07T19:20:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mprohorov1](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/mprohorov1/32/4398_2.png) [@mprohorov1](https://forum.canton.network/u/mprohorov1)\
**Post date:** [July 7, 2022, 7:20pm UTC](https://forum.canton.network/t/jest-puppeteer-test-suite-failing-to-run-on-example/4864/1 "2022-07-07T19:20:40Z")

</div>

Hello, I’ve been looking to run the example test suite posted in [https://docs.daml.com/getting-started/testing.html](https://docs.daml.com/getting-started/testing.html) with the template create-daml-app.

After following the steps and running npm test, Console throws some errors:

Ex: Party names are unique  
thrown: “Exceeded timeout of 60000 ms for a hook”

for all written tests, and afterward

Test suite failed to run  
spawn npm-cli.js ENOENT  
Test suite failed to run  
TypeError: The “pid” argument must be of type number. Received type number (NaN)

The last statement in console.debug before failing is “Starting npm start”, so I suspect it’s something to do with spawning the npm start process in beforeAll(). Not sure how to go about troubleshooting this, so any help is appreciated!

Running on Ubuntu 20.04 LTS.

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [July 11, 2022, 3:25pm UTC](https://forum.canton.network/t/jest-puppeteer-test-suite-failing-to-run-on-example/4864/2 "2022-07-11T15:25:53Z")

</div>

Hi @mprohorov1,

I’m not very familiar with this part; would you mind sharing a bit more details about exactly what you’ve done, and maybe a bit more of the console output, preferably within triple-backticks?

---

<div class="post-metadata">

**Author:** ![mprohorov1](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/mprohorov1/32/4398_2.png) [@mprohorov1](https://forum.canton.network/u/mprohorov1)\
**Post date:** [July 11, 2022, 3:53pm UTC](https://forum.canton.network/t/jest-puppeteer-test-suite-failing-to-run-on-example/4864/3 "2022-07-11T15:53:04Z")

</div>

Hey @Gary_Verhaegen ,

I ended up finding the point of failure and resolving this. In the beforeAll() function:

```haskell
uiProc = spawn("npm-cli.js", ["run-script", "start"], {
   env,
   stdio:"inherit",
   detached: true,
});

```

changed to

```haskell
uiProc = spawn("npm", ["run-script", "start"], {
   env,
   stdio:"inherit",
   detached: true,
});

```

So, it’s likely just a mismatched name in the PATH.
