# \[Solved\] Pnpm run test error

**URL:** https://discourse.aurelia.io/t/solved-pnpm-run-test-error/4604
**Category:** Help Requests
**Created:** [February 10, 2022, 1:45pm UTC](https://discourse.aurelia.io/t/solved-pnpm-run-test-error/4604 "2022-02-10T13:45:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![LetsZiggy](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/letsziggy/32/2312_2.png) [@LetsZiggy](https://discourse.aurelia.io/u/LetsZiggy)
#### Post date: [February 10, 2022, 1:45pm UTC](https://discourse.aurelia.io/t/solved-pnpm-run-test-error/4604/1 "2022-02-10T13:45:44Z")

</div>

Hi,

[Solution](https://discourse.aurelia.io/t/pnpm-run-test-error/4604/4)

I’ve tried to run test with pnpm, `pnpm run test`, but gotten error (see `error-output` below).  
Got same error with fresh install `pnpm dlx makes aurelia/v1` (see `makes-options`)  
Any ideas?

**makes-options:**

```auto
aurelia/v1 new-project-name -s cli-bundler,alameda,typescript,htmlmin,postcss,karma,cypress,scaffold-navigation

```

**error-output:**

```auto
...
Starting 'karma'...
10 02 2022 21:37:15.233:WARN [karma-server]: Passing raw CLI options to `new Server(config, done)` is deprecated. Use `parseConfig(configFilePath, cliOptions, {promiseConfig: true, throwErrors: true})` to prepare a processed `Config` instance and pass that as the `config` argument instead.
10 02 2022 21:37:15.483:ERROR [plugin]: Cannot load "typescript", it is not registered!
  Perhaps you are missing some plugin?
10 02 2022 21:37:15.483:ERROR [plugin]: Cannot load "sourcemap", it is not registered!
  Perhaps you are missing some plugin?
10 02 2022 21:37:15.486:ERROR [karma-server]: Server start failed on port 9876: Error: No provider for "framework:jasmine"! (Resolving: framework:jasmine)
Finished 'karma'
 ELIFECYCLE Test failed. See above for more details.

```

---

<div class="post-metadata">

### Author: ![ArchEnemy](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/archenemy/32/2445_2.png) [@ArchEnemy](https://discourse.aurelia.io/u/ArchEnemy)
#### Post date: [February 18, 2022, 6:14am UTC](https://discourse.aurelia.io/t/solved-pnpm-run-test-error/4604/2 "2022-02-18T06:14:54Z")

</div>

> [@LetsZiggy](#):
>
> pnpm

Sorry never used pnpm, only npm.

---

<div class="post-metadata">

### Author: ![LetsZiggy](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/letsziggy/32/2312_2.png) [@LetsZiggy](https://discourse.aurelia.io/u/LetsZiggy)
#### Post date: [February 19, 2022, 9:02am UTC](https://discourse.aurelia.io/t/solved-pnpm-run-test-error/4604/3 "2022-02-19T09:02:37Z")

</div>

ok. noted.

If anyone tried aurelia test with pnpm and can get it to work, please advise. Thanks

---

<div class="post-metadata">

### Author: ![zewa666](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/zewa666/32/19_2.png) [@zewa666](https://discourse.aurelia.io/u/zewa666)
#### Post date: [February 19, 2022, 10:12am UTC](https://discourse.aurelia.io/t/solved-pnpm-run-test-error/4604/4 "2022-02-19T10:12:47Z")

</div>

i havent tried but I suspect its the way how karma automatically loads plugins without conf named karma-xxx using npm. If you try whats mentioned here and explicitely register/load the plugins does it help? [Karma and Rollup - Not found provider for: framework:qunit · Issue #720 · pnpm/pnpm · GitHub](https://github.com/pnpm/pnpm/issues/720#issuecomment-954120387)

also, which version of nodejs and pnpm are you running?

---

<div class="post-metadata">

### Author: ![LetsZiggy](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/letsziggy/32/2312_2.png) [@LetsZiggy](https://discourse.aurelia.io/u/LetsZiggy)
#### Post date: [February 21, 2022, 12:06pm UTC](https://discourse.aurelia.io/t/solved-pnpm-run-test-error/4604/5 "2022-02-21T12:06:41Z")

</div>

@zewa666 thank you. it works.

nodejs: v17.3.0  
pnpm: 6.31.0

`karma.conf.js`

```auto
    // Make Karma work with pnpm.
    // See: https://github.com/pnpm/pnpm/issues/720#issuecomment-954120387
    plugins: Object.keys(require("./package.json").devDependencies).flatMap(
      (packageName) => {
        if (!packageName.startsWith("karma-")) return []
        return [require(packageName)]
      },
    ),

```
