generated from hyper63/adapter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add adapter.memory that uses in-memory mongo to run test suite
- Loading branch information
1 parent
1775aca
commit 60588f6
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import mongo from './mod.ts' | ||
|
||
import { suite } from './test/suite.ts' | ||
|
||
Deno.test({ | ||
name: 'Mongo Adapter Test Suite - In-Memory', | ||
fn: async (t) => { | ||
const { client } = await mongo({ dir: '__hyper__', dirVersion: '7.0.4' }).load() | ||
await suite(t)(client, { shouldBaseLine: true }) | ||
}, | ||
/** | ||
* The native client maintains TCP connections | ||
* and timers, as part of connecting to Mongo, | ||
* | ||
* So we ignore sanitization of these resources | ||
* and ops, when running tests with the NativeClient | ||
* | ||
* See https://deno.com/manual/basics/testing/sanitizers | ||
*/ | ||
sanitizeOps: false, | ||
sanitizeResources: false, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters