Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza committed Sep 7, 2024
1 parent f6ae09e commit b55bdea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globalSetup: ["vitest-mms/globalSetup"],
setupFiles: ["vitest-mms/setupFile"],
setupFiles: ["vitest-mms/mongodb/setupFile"],
},
});
```
Expand All @@ -50,7 +50,7 @@ For typescript support add the following to your tsconfig.json
// tsconfig.json
{
"compilerOptions": {
"types": ["vitest-mms/setupFile"]
"types": ["vitest-mms/mongodb/setupFile"]
}
}
```
Expand Down Expand Up @@ -111,7 +111,7 @@ index.test.js:

```js
// using the extended test context
import { mssTest as test } from "vitest-mms/test";
import { mssTest as test } from "vitest-mms/mongodb/test";

test("my test", async ({ db, mongoClient }) => {
const users = db.collection("users");
Expand All @@ -133,7 +133,7 @@ import AutoImport from "unplugin-auto-import/vite";
export default defineConfig({
plugins: [
AutoImport({
imports: [{ "vitest-mms/test": [["mmsTest", "test"]] }],
imports: [{ "vitest-mms/mongodb/test": [["mmsTest", "test"]] }],
}),
],
test: {
Expand Down

0 comments on commit b55bdea

Please sign in to comment.