Skip to content

Commit 7608177

Browse files
committed
docs: update mongoose and replset examples
1 parent 5d403e0 commit 7608177

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ test("some test", async () => {
129129
### Using extended context (mongoose)
130130

131131
```js
132+
import { mssTest } from "vitest-mms/mongoose/test";
133+
132134
// index.test.js
133135
test("my test", async ({ connection }) => {
134136
const User = connection.model("User", new Schema({ name: String }));
@@ -150,7 +152,6 @@ import { defineConfig } from "vitest/config";
150152
export default defineConfig({
151153
test: {
152154
globalSetup: ["vitest-mms/globalSetupReplSet"],
153-
setupFiles: ["vitest-mms/mongodb/setupFile"],
154155
vitestMms: {
155156
mongodbMemoryServerOptions: {
156157
replSet: { count: 4 },

0 commit comments

Comments
 (0)