From d951be5afeeb1077635fb63b99703f45478385f1 Mon Sep 17 00:00:00 2001 From: hasezoey Date: Thu, 21 Sep 2023 12:09:12 +0200 Subject: [PATCH] test(schema.select.test): clear data before test --- test/schema.select.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/schema.select.test.js b/test/schema.select.test.js index a6a2ae29a32..f67bfa774da 100644 --- a/test/schema.select.test.js +++ b/test/schema.select.test.js @@ -26,6 +26,9 @@ describe('schema select option', function() { afterEach(() => require('./util').stopRemainingOps(db)); it('excluding paths through schematype', async function() { + // data clearing is required for this test, because in deno some other test leaks a "_id: immutable" index + require('./util').clearTestData(db); + const schema = new Schema({ thin: Boolean, name: { type: String, select: false },