# multiplatform

Patrick Ramsey

02/18/2021, 8:17 PM
Hi, folks! I’m trying to add a commonTest sourceset to a kmp project that already has android, ios, and js build targets. A questions: When I try to run my newly minted unit test on the js target, I’m seeing “Could not determine the dependencies of task “:<project name>jsTestPackageJson NPM Dependencies already resolved and installed”. Digging around in the gradle source, it looks like this might indicate that the KotlinPackageJsonTask is running at the wrong time (ie, an assertion is failing). Has anyone else encountered this? Just confirmed that it’s happening for jsTest as well (just hadn’t noticed since it’s not currently wired into our CI). Thanks in advance for any clarity you might have to offer!
Specifically, the error is,
Copy code
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':Plugins:jsTestPackageJson'.
> NPM Dependencies already resolved and installed
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <>
which’d be a shame, since I don’t think that change is in a release yet