From 4f77fbf07b72911c42ebdeee03382fdde25e61d3 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Thu, 8 Oct 2026 13:13:10 +0200 Subject: [PATCH] test: add the config record to the snapshots --- test/e2e/test/recorded-deps.test.ts | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/test/e2e/test/recorded-deps.test.ts b/test/e2e/test/recorded-deps.test.ts index cc70c39b4..674d41868 100644 --- a/test/e2e/test/recorded-deps.test.ts +++ b/test/e2e/test/recorded-deps.test.ts @@ -315,7 +315,11 @@ test('a partial run without a previous record does not create one', async () => expect(stderr).toBe('') expect(readDependencies(ctx)).toMatchInlineSnapshot(` { - "": {}, + "": { + "": [ + "vitest.config.js", + ], + }, } `) @@ -336,6 +340,9 @@ test('a partial run without a previous record does not create one', async () => expect(readDependencies(first.ctx)).toMatchInlineSnapshot(` { "": { + "": [ + "vitest.config.js", + ], "a.test.js": [ "a.test.js", "src/dynamic.js", @@ -958,6 +965,9 @@ describe('without the module runner', () => { expect(readDependencies(ctx)).toMatchInlineSnapshot(` { "": { + "": [ + "vitest.config.js", + ], "a.test.js": [ "a.test.js", "src/helper.js", @@ -991,6 +1001,9 @@ describe('without the module runner', () => { expect(readDependencies(ctx)).toMatchInlineSnapshot(` { "": { + "": [ + "vitest.config.js", + ], "a.test.js": [ "a.test.js", "src/inner.js", @@ -1051,6 +1064,9 @@ describe('without the module runner', () => { expect(readDependencies(ctx)).toMatchInlineSnapshot(` { "": { + "": [ + "vitest.config.js", + ], "": [ "global-setup.js", "src/global-helper.js", @@ -1113,6 +1129,9 @@ describe('without the module runner', () => { expect(readDependencies(ctx)).toMatchInlineSnapshot(` { "": { + "": [ + "vitest.config.js", + ], "automock.test.js": [ "automock.test.js", "src/__mocks__/dep.js", -- 2.51.2