moduleIntegrationTestRunner Reference
This is a reference to the moduleIntegrationTestRunner function provided by the @medusajs/test-utils package.
Example#
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
import { BLOG_MODULE } from ".."
import BlogModuleService from "../service"
import Post from "../models/post"
moduleIntegrationTestRunner<BlogModuleService>({
moduleName: BLOG_MODULE,
moduleModels: [Post],
resolve: "./src/modules/blog",
testSuite: ({ service }) => {
// TODO write tests
},
})
Parameters#
Loading...
Test Suite Parameters#
The function passed to testSuite accepts the following parameters:
Loading...
Was this page helpful?