Files
medusa-store/www/apps/resources/app/troubleshooting/test-errors/page.mdx
Shahed Nasser ed715813a5 docs: docs for next release (#13621)
* docs: docs for next release

* changes to opentelemetry dependencies

* document plugin env variables

* document admin changes

* fix vale error

* add version notes

* document campaign budget updates

* document campaign changes in user guide

* document chages in cluster mode cli

* documented once promotion allocation

* document multiple API keys support
2025-10-21 10:32:08 +03:00

33 lines
921 B
Plaintext

export const metadata = {
title: `Test Errors`,
}
# {metadata.title}
## Loaders for module Workflows failed
If you get the following error when running your tests:
```bash
Loaders for module Workflows failed: Method Map.prototype.set called on incompatible receiver #<Map>
```
This may occur if you have multiple test files and you don't configure your Jest environment correctly. To resolve this, add the following configuration to your `jest.config.js` file:
```js title="jest.config.js"
module.exports = {
// ...
setupFiles: ["./integration-tests/setup.js"],
}
```
Then, create the `integration-tests/setup.js` file with the following content:
```js title="integration-tests/setup.js"
const { MetadataStorage } = require("@medusajs/framework/@mikro-orm/core")
MetadataStorage.clear()
```
Learn more about configuring test tools in [this documentation](!docs!/learn/debugging-and-testing/testing-tools)