Skip to content

Commit

Permalink
fix: export globalSetup types
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza committed Aug 21, 2024
1 parent 960c9ca commit cfd14cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"description": "mongodb-memory-server integration for vitest",
"type": "module",
"exports": {
"./globalSetup": "./dist/globalSetup.js",
"./globalSetup": {
"types": "./dist/globalSetup.d.ts",
"default": "./dist/globalSetup.js"
},
"./test": {
"types": "./dist/mmsTest.d.ts",
"default": "./dist/mmsTest.js"
Expand Down
5 changes: 4 additions & 1 deletion tests/basic/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "@tsconfig/node-lts"
"extends": "@tsconfig/node-lts",
"compilerOptions": {
"types": ["vitest-mms/globalSetup"]
}
}

0 comments on commit cfd14cd

Please # to comment.