Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vitest-mms

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitest-mms - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

14

dist/globalSetup.d.ts

@@ -0,3 +1,5 @@

import { GlobalSetupContext } from 'vitest/node';
export { ResolvedConfig } from 'vitest/node';
import { MongoMemoryServer } from 'mongodb-memory-server';
export { ProvidedContext } from 'vitest';
import { GlobalSetupContext } from 'vitest/node';

@@ -9,4 +11,12 @@ declare module "vitest" {

}
declare function setup({ provide }: GlobalSetupContext): Promise<() => Promise<void>>;
type MongoMemoryServerOpts = Parameters<typeof MongoMemoryServer.create>[0];
declare module "vitest/node" {
interface ResolvedConfig {
vitestMms?: {
mongodbMemoryServerOptions: MongoMemoryServerOpts;
};
}
}
declare function setup({ provide, config }: GlobalSetupContext): Promise<() => Promise<void>>;
export { setup as default };

@@ -6,2 +6,3 @@ import * as vitest from 'vitest';

import 'vitest/node';
import 'mongodb-memory-server';

@@ -8,0 +9,0 @@ declare const mmsTest: vitest.TestAPI<{

@@ -5,2 +5,3 @@ import { MongoClient, Db } from 'mongodb';

import 'vitest/node';
import 'mongodb-memory-server';

@@ -7,0 +8,0 @@ declare module "vitest" {

@@ -6,2 +6,3 @@ import * as vitest from 'vitest';

import 'vitest/node';
import 'mongodb-memory-server';

@@ -8,0 +9,0 @@ declare const mmsTest: vitest.TestAPI<{

@@ -5,2 +5,3 @@ import { Connection } from 'mongoose';

import 'vitest/node';
import 'mongodb-memory-server';

@@ -7,0 +8,0 @@ declare module "vitest" {

2

package.json
{
"name": "vitest-mms",
"version": "0.2.2",
"version": "0.2.3",
"description": "mongodb-memory-server integration for vitest",

@@ -5,0 +5,0 @@ "exports": {

@@ -39,2 +39,9 @@ # vitest-mms [![NPM Version](https://img.shields.io/npm/v/vitest-mms)](https://www.npmjs.com/package/vitest-mms)

setupFiles: ["vitest-mms/mongodb/setupFile"],
vitestMms: {
// optional configuration
mongodbMemoryServer: {
// these options are passed to MongoMemoryServer.create(), see https://typegoose.github.io/mongodb-memory-server/docs/guides/quick-start-guide#normal-server
// replSet: { count: 4 }
},
},
},

@@ -83,2 +90,9 @@ });

setupFile: ["vitest-mms/mongoose/setupFile"],
vitestMms: {
// optional configuration
mongodbMemoryServer: {
// these options are passed to MongoMemoryServer.create(), see https://typegoose.github.io/mongodb-memory-server/docs/guides/quick-start-guide#normal-server
// replSet: { count: 4 }
},
},
},

@@ -85,0 +99,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc